25 #include <sys/types.h>
27 #include <tulip/tulipconf.h>
30 typedef struct _stat tlp_stat_t;
32 typedef struct stat tlp_stat_t;
36 extern TLP_SCOPE
const char PATH_DELIMITER;
37 extern TLP_SCOPE std::string TulipLibDir;
38 extern TLP_SCOPE std::string TulipPluginsPath;
39 extern TLP_SCOPE std::string TulipBitmapDir;
40 extern TLP_SCOPE std::string TulipShareDir;
54 extern TLP_SCOPE
void initTulipLib(
const char* appDirPath = NULL);
65 bool hideTlp =
false);
86 TLP_SCOPE std::istream *getIgzstream(
const std::string &name,
int open_mode = std::ios::in);
96 TLP_SCOPE std::ostream *getOgzstream(
const std::string &name,
int open_mode = std::ios::out);
104 TLP_SCOPE
void setSeedOfRandomSequence(
unsigned int seed = UINT_MAX);
110 TLP_SCOPE
unsigned int getSeedOfRandomSequence();
117 TLP_SCOPE
void initRandomSequence();
125 TLP_SCOPE
int statPath(
const std::string &pathname, tlp_stat_t *buf);
133 TLP_SCOPE std::istream *getInputFileStream(
const std::string &filename, std::ios_base::openmode open_mode = std::ios::in);
141 TLP_SCOPE std::ostream *getOutputFileStream(
const std::string &filename, std::ios_base::openmode open_mode = std::ios::out);
void initTulipLib(const char *appDirPath=NULL)
Initializes the Tulip library. Looks for the Tulip plug-ins directory. The plug-ins directory can be ...
std::string demangleTlpClassName(const char *className)
Demangles the name of a C++ class defined in the tlp namespace.
std::string demangleClassName(const char *className, bool hideTlp=false)
Demangles the name of a C++ class.