/usr/include/tulip/TlpTools.h is in libtulip-dev 3.1.2-2.3ubuntu3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | //-*-c++-*-
/**
Authors: David Auber, Patrick Mary, Morgan Mathiaut
from the LaBRI Visualization Team
Email : auber@tulip-software.org
Last modification : 13/03/2009
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
*/
#ifndef _TLPTOOLS_H
#define _TLPTOOLS_H
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <iostream>
#include "tulip/tulipconf.h"
#include "tulip/PluginLoader.h"
namespace tlp {
extern TLP_SCOPE const char PATH_DELIMITER;
extern TLP_SCOPE std::string TulipLibDir;
extern TLP_SCOPE std::string TulipPluginsPath;
extern TLP_SCOPE std::string TulipDocProfile;
extern TLP_SCOPE std::string TulipUserHandBookIndex;
extern TLP_SCOPE std::string TulipBitmapDir;
extern TLP_SCOPE void initTulipLib(char* appDirPath = 0);
TLP_SCOPE void loadPlugins(PluginLoader *plug=0);
TLP_SCOPE bool loadPlugin(const std::string &filename, PluginLoader *plug=0);
TLP_SCOPE void loadPluginsFromDir(std::string dir, std::string type, PluginLoader *loader=0);
TLP_SCOPE void loadPluginsCheckDependencies(PluginLoader* loader=0);
/**
* returns the demangled name of a C++ class defines in the tlp namespace.
* The tlp:: prefix is omitted and the returned pointer
* do not have to be deallocated.
*/
TLP_SCOPE char *demangleTlpClassName(const char *className);
TLP_SCOPE std::istream *getIgzstream(const char *name, int open_mode = std::ios::in);
/**
* Returns an ostream to write to a gzipped file (uses gzstream lib)
* the stream has to be deleted after use.
* \warning Don't forget to check the stream with ios::bad()!
*/
TLP_SCOPE std::ostream *getOgzstream(const char *name, int open_mode = std::ios::out);
/**
* Extracts Major number from a release number
*/
TLP_SCOPE std::string getMajor(const std::string &release);
/**
* Extracts Minor number from a release number
*/
TLP_SCOPE std::string getMinor(const std::string &release);
};
#endif
|