#include <string>
#include <yarp/os/ResourceFinder.h>
#include <yarp/conf/filesystem.h>
#include <iostream>
#include <vector>
Go to the source code of this file.
Macros | |
#define | PATH_SEPARATOR std::string{yarp::conf::filesystem::preferred_separator} |
Enumerations | |
enum | folderType { CONTEXTS =0 , ROBOTS =1 } |
#define PATH_SEPARATOR std::string{yarp::conf::filesystem::preferred_separator} |
Definition at line 16 of file yarpcontextutils.h.
enum folderType |
Enumerator | |
---|---|
CONTEXTS | |
ROBOTS |
Definition at line 18 of file yarpcontextutils.h.
int diff | ( | std::string | contextName, |
folderType | fType, | ||
bool | verbose = false |
||
) |
Definition at line 863 of file yarpcontextutils.cpp.
int diffList | ( | folderType | fType, |
bool | verbose = false |
||
) |
Definition at line 903 of file yarpcontextutils.cpp.
bool fileCopy | ( | std::string | srcFileName, |
std::string | destFileName, | ||
bool | force = false , |
||
bool | verbose = true |
||
) |
Definition at line 92 of file yarpcontextutils.cpp.
int fileMerge | ( | std::string | srcFileName, |
std::string | destFileName, | ||
std::string | commonParentName | ||
) |
Definition at line 530 of file yarpcontextutils.cpp.
bool fileRemove | ( | std::string | fileName | ) |
Definition at line 141 of file yarpcontextutils.cpp.
int import | ( | yarp::os::Bottle & | importArg, |
folderType | fType, | ||
bool | verbose = false |
||
) |
Definition at line 611 of file yarpcontextutils.cpp.
int importAll | ( | folderType | fType, |
bool | verbose = false |
||
) |
Definition at line 696 of file yarpcontextutils.cpp.
std::vector< std::string > listContentDirs | ( | const std::string & | curPath | ) |
Definition at line 258 of file yarpcontextutils.cpp.
std::vector< std::string > listContentFiles | ( | const std::string & | curPath | ) |
Definition at line 287 of file yarpcontextutils.cpp.
int merge | ( | yarp::os::Bottle & | mergeArg, |
folderType | fType, | ||
bool | verbose = false |
||
) |
Definition at line 947 of file yarpcontextutils.cpp.
void prepareHomeFolder | ( | yarp::os::ResourceFinder & | rf, |
folderType | ftype | ||
) |
Definition at line 380 of file yarpcontextutils.cpp.
Definition at line 408 of file yarpcontextutils.cpp.
Definition at line 332 of file yarpcontextutils.cpp.
void printInstalledFolders | ( | yarp::os::ResourceFinder & | rf, |
folderType | ftype | ||
) |
Definition at line 367 of file yarpcontextutils.cpp.
void printSysadmFolders | ( | yarp::os::ResourceFinder & | rf, |
folderType | ftype | ||
) |
Definition at line 354 of file yarpcontextutils.cpp.
void printUserFolders | ( | yarp::os::ResourceFinder & | rf, |
folderType | ftype | ||
) |
Definition at line 341 of file yarpcontextutils.cpp.
int recursiveCopy | ( | std::string | srcDirName, |
std::string | destDirName, | ||
bool | force = false , |
||
bool | verbose = true |
||
) |
Definition at line 146 of file yarpcontextutils.cpp.
int recursiveDiff | ( | std::string | srcDirName, |
std::string | destDirName, | ||
std::ostream & | output = std::cout |
||
) |
Definition at line 472 of file yarpcontextutils.cpp.
int recursiveMerge | ( | std::string | srcDirName, |
std::string | destDirName, | ||
std::string | commonParentName, | ||
std::ostream & | output = std::cout |
||
) |
Definition at line 554 of file yarpcontextutils.cpp.
Definition at line 217 of file yarpcontextutils.cpp.
int remove | ( | yarp::os::Bottle & | removeArg, |
folderType | fType, | ||
bool | verbose = false |
||
) |
Definition at line 752 of file yarpcontextutils.cpp.