20 bool checkString(
const std::string & testName,
const std::string & strValue,
const std::string & strReference){
153 std::cout <<
"testPPathGetProgram : PPath::getProgramPrefix() = '" <<
PPath::getProgramPrefix() <<
"'" << std::endl;
154 std::cout <<
"testPPathGetProgram : PPath::getHomeDir() = '" <<
PPath::getHomeDir() <<
"'" << std::endl;
161 PPath path1(
"some/Path"), path2(
"and/other");
171 PPath testDirectory(
"./TestDirectory");
182 int main(
int argc,
char** argv){
std::vector< PPath > PVecPath
Path of a directory or a file.
std::vector< PPath > getAllDirectoryInDir() const
Get the list of files in a directory.
static PPath getCurrentDirectory()
Returns the current directory.
static PString getCurrentNodeName()
Get the name of the current node on which the program is running.
static PPath getHomeDir()
Gets the $HOME directory.
static PPath getProgramPrefix()
Get the program prefix (installation directory without /bin)
static PPath getProgramLocation()
Get the program location.
std::vector< PPath > getAllFileInDir() const
Get the list of files in a directory.
std::vector< PPath > getAllElementInDir() const
Get the list of all elements in a directory.
static PPath getProgramDirectory()
Get the program directory.
#define phoenix_assert(isOk)
bool phoenix_check(const std::string &testName, const std::string &val, const std::string &reference)
Check two string.
int main(int argc, char **argv)
void testPPathIsAbsolute()
Test isAbsolute path.
void testPPathCreateDirectory()
Test the createDirectory.
void testPPathOperator()
Test PPath operators.
void testPPathGetExtention()
Test the getExtension of PPath.
bool checkString(const std::string &testName, const std::string &strValue, const std::string &strReference)
Check string lower expression.
void testPPathGetUnderPath()
Test the getUnderPath.
void testPPathRemoveDots()
Test the simplify.
void testPPathGetFileDirName()
Test the getFileName and getDirectoryName.
void testPPathMakeAbsolute()
Test the PPath makeAbsolute.
void testPPathFileContent()
Test load and save file content.
void testPPathIsExist()
Test the PString.
void testPPathGetProgram()
Test getProgramDirectory, getProgramLocation and getProgramPrefix.
void testPPathListAllFileInDir()
Test the getAllFileInDir.