Classes | |
class | Command |
Launch command and get their output. More... | |
class | FileNotFoundException |
class | Compressed |
Base class for archive manipluation. More... | |
struct | equalFile |
class | Output |
class | Debug |
class | Directory |
class | NetException |
struct | urlDetails |
class | Object |
class | TarFile |
Represent a Tar archive. More... | |
class | TranslationManager |
class | UnknownUserException |
class | NullPointerException |
class | ArchiveException |
class | ZipFile |
Represent a Zip archive. More... | |
Enumerations | |
enum | messageType_e { MESSAGE, WARNING, ERROR } |
enum | compressor_e { BZ2, GZ, NO } |
Functions | |
int | getSocket (const std::string &host, int port) throw (NetException) |
get a connection to a host | |
void | closeSocket (int &fdSocket) |
Close a connection. | |
void | sendTo (int fdSocket, std::string &str) throw (NetException) |
send a string | |
char * | recv (int fdSocket, int &size) throw (NetException) |
Receive a string from network. | |
urlDetails | parseUrl (const std::string &url) throw (NetException) |
Parse an URL. | |
int | getDefaultPortByService (const std::string &serviceName) |
Get the default port of a service. | |
bool | isUrl (const std::string &str) |
Check if a string is an URL. | |
bool | checkPath (const std::string &path) |
Check if a path exist. | |
void | removeDir (const std::string &dir) |
Remove a directory and its content. | |
bool | createDir (const std::string &dir) |
create a directory | |
std::string | getUserName () |
boost::filesystem::path | getUserHome () |
boost::filesystem::path | getUserHome (const std::string &user) throw (UnknownUserException) |
boost::filesystem::path | getSpmUserDir () |
boost::filesystem::path | getSpmUserDir (const std::string &user) |
bool | isRoot () |
Compressed * | getCompressed (const boost::filesystem::path &file) |
find the Compressed for a archive | |
void | checkSpmDir (const boost::filesystem::path &dir) |
Check the srcPack. | |
bool | haveEnoughRight (const boost::filesystem::path &dir) |
Check that the user have write access to a dir. | |
std::string | intToStr (unsigned long nb) |
Convert a number to a string. | |
bool | checkPath (const boost::filesystem::path &path) |
Check if a path exist. |
|
|
|
|
|
Check if a path exist.
|
|
Check if a path exist.
|
|
Check the srcPack.
|
|
Close a connection.
|
|
create a directory
|
|
find the Compressed for a archive
|
|
Get the default port of a service.
|
|
get a connection to a host
|
|
|
|
|
|
|
|
|
|
|
|
Check that the user have write access to a dir.
|
|
Convert a number to a string.
|
|
|
|
Check if a string is an URL.
|
|
Parse an URL.
|
|
Receive a string from network.
|
|
Remove a directory and its content.
|
|
send a string
|