51 #include <visp/vpConfig.h>
58 #include <visp/vpColor.h>
159 static void getUserName(std::string &username);
160 static std::string getUserName();
161 static std::string getenv(
const char *env);
162 static std::string getenv(std::string &env);
163 static bool checkDirectory(
const char *dirname);
164 static bool checkDirectory(
const std::string &dirname);
165 static bool checkFilename(
const char *filename);
166 static bool checkFilename(
const std::string &filename);
167 static bool copy(
const char *src,
const char *dst);
168 static bool copy(
const std::string &src,
const std::string &dst);
169 static void makeDirectory(
const char *dirname);
170 static void makeDirectory(
const std::string &dirname);
171 static bool remove(
const char *filename);
172 static bool remove(
const std::string &filename);
173 static bool rename(
const char *oldfilename,
const char *newfilename);
174 static bool rename(
const std::string &oldfilename,
175 const std::string &newfilename);
177 static std::string path(
const char * pathname);
178 static std::string path(
const std::string &pathname);
181 static void loadConfigFile(
const std::string &confFile);
182 static bool readConfigVar(
const std::string &var,
double &value);
183 static bool readConfigVar(
const std::string &var,
int &value);
184 static bool readConfigVar(
const std::string &var,
unsigned int &value);
185 static bool readConfigVar(
const std::string &var,
bool &value);
186 static bool readConfigVar(
const std::string &var, std::string &value);
187 static bool readConfigVar(
const std::string &var,
vpColor &value);
188 static bool readConfigVar(
const std::string &var,
vpMatrix &value,
189 const unsigned int &nCols = 0,
190 const unsigned int &nRows = 0);
198 inline static void setBaseName(
const std::string &s) {baseName = s;}
204 static inline void setBaseDir(
const std::string &dir) {baseDir = dir +
"/";}
205 static void addNameElement(
const std::string &strTrue,
206 const bool &cond=
true,
207 const std::string &strFalse=
"");
208 static void addNameElement(
const std::string &strTrue,
const double &val);
220 inline static std::string
getFullName() {
return baseDir + baseName;}
223 static void saveConfigFile(
const bool &actuallySave =
true);
224 static void createBaseNamePath(
const bool &empty =
false);
Definition of the vpMatrix class.
Class to define colors available for display functionnalities.