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 void getVersion(
const std::string &version,
unsigned int &major,
unsigned int &minor,
unsigned int &patch);
164 static bool checkDirectory(
const char *dirname);
165 static bool checkDirectory(
const std::string &dirname);
166 static bool checkFilename(
const char *filename);
167 static bool checkFilename(
const std::string &filename);
168 static bool copy(
const char *src,
const char *dst);
169 static bool copy(
const std::string &src,
const std::string &dst);
170 static void makeDirectory(
const char *dirname);
171 static void makeDirectory(
const std::string &dirname);
172 static bool remove(
const char *filename);
173 static bool remove(
const std::string &filename);
174 static bool rename(
const char *oldfilename,
const char *newfilename);
175 static bool rename(
const std::string &oldfilename,
176 const std::string &newfilename);
178 static std::string path(
const char * pathname);
179 static std::string path(
const std::string &pathname);
182 static bool loadConfigFile(
const std::string &confFile);
183 static bool readConfigVar(
const std::string &var,
float &value);
184 static bool readConfigVar(
const std::string &var,
double &value);
185 static bool readConfigVar(
const std::string &var,
int &value);
186 static bool readConfigVar(
const std::string &var,
unsigned int &value);
187 static bool readConfigVar(
const std::string &var,
bool &value);
188 static bool readConfigVar(
const std::string &var, std::string &value);
189 static bool readConfigVar(
const std::string &var,
vpColor &value);
190 static bool readConfigVar(
const std::string &var,
vpMatrix &value,
191 const unsigned int &nCols = 0,
192 const unsigned int &nRows = 0);
200 inline static void setBaseName(
const std::string &s) {baseName = s;}
206 static inline void setBaseDir(
const std::string &dir) {baseDir = dir +
"/";}
207 static void addNameElement(
const std::string &strTrue,
208 const bool &cond=
true,
209 const std::string &strFalse=
"");
210 static void addNameElement(
const std::string &strTrue,
const double &val);
222 inline static std::string
getFullName() {
return baseDir + baseName;}
225 static void saveConfigFile(
const bool &actuallySave =
true);
226 static void createBaseNamePath(
const bool &empty =
false);
Definition of the vpMatrix class.
Class to define colors available for display functionnalities.