Classes | |
class | Command |
Launch command and get their output. More... | |
class | FileNotFoundException |
class | Compressed |
Base class for archive manipluation. More... | |
class | Output |
class | Debug |
class | NetException |
struct | urlDetails |
class | Object |
The base class for all objects Object is the base class for all objects. It provide the following. a name, owner, mutex attribute and a modified signal. More... | |
class | PropertyList |
A property container A property container. Property are identified by a name. There is 3 types recognized (Integer,String,boolean). More... | |
class | TranslationManager |
Manage translation. More... | |
class | UnknownUserException |
class | NullPointerException |
class | ArchiveException |
class | NoPropertyException |
class | BadPropertyTypeException |
class | ExistingPropertyException |
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 miniXml::ustring &path) |
Check if a path exist. | |
void | removeDir (const miniXml::ustring &dir) |
Remove a directory and its content. | |
bool | createDir (const miniXml::ustring &dir) |
create a directory | |
miniXml::ustring | getUserName () |
boost::filesystem::path | getUserHome () |
boost::filesystem::path | getUserHome (const miniXml::ustring &user) throw (UnknownUserException) |
boost::filesystem::path | getSpmUserDir () |
boost::filesystem::path | getSpmUserDir (const miniXml::ustring &user) |
bool | isRoot () |
void | checkSpmDir (const boost::filesystem::path &dir) |
Check the Spm directory structure. | |
bool | haveEnoughRight (const boost::filesystem::path &dir) |
Check that the user have write access to a dir. | |
template<class T> | |
miniXml::ustring | toString (T t) |
bool | checkPath (const boost::filesystem::path &path) |
Check if a path exist. | |
int | numberOfProcessors () |
bool Spm::Util::checkPath | ( | const boost::filesystem::path & | path | ) | [inline] |
Check if a path exist.
path | The path to check |
bool Spm::Util::checkPath | ( | const miniXml::ustring & | path | ) |
Check if a path exist.
path | The path to check |
void Spm::Util::checkSpmDir | ( | const boost::filesystem::path & | dir | ) |
void Spm::Util::closeSocket | ( | int & | fdSocket | ) |
Close a connection.
fdSocket | The connection to close |
bool Spm::Util::createDir | ( | const miniXml::ustring & | dir | ) |
create a directory
dir | The directory to create |
int Spm::Util::getDefaultPortByService | ( | const std::string & | serviceName | ) |
Get the default port of a service.
serviceName | The name of the service |
int Spm::Util::getSocket | ( | const std::string & | host, | |
int | port | |||
) | throw (NetException) |
get a connection to a host
host | The host address | |
port | The port of the connection |
boost::filesystem::path Spm::Util::getSpmUserDir | ( | const miniXml::ustring & | user | ) |
boost::filesystem::path Spm::Util::getSpmUserDir | ( | ) |
boost::filesystem::path Spm::Util::getUserHome | ( | const miniXml::ustring & | user | ) | throw (UnknownUserException) |
user | The username of the user |
boost::filesystem::path Spm::Util::getUserHome | ( | ) |
miniXml::ustring Spm::Util::getUserName | ( | ) |
bool Spm::Util::haveEnoughRight | ( | const boost::filesystem::path & | dir | ) |
Check that the user have write access to a dir.
dir | The directory to check |
bool Spm::Util::isRoot | ( | ) |
bool Spm::Util::isUrl | ( | const std::string & | str | ) |
Check if a string is an URL.
str | The string to check |
int Spm::Util::numberOfProcessors | ( | ) |
urlDetails Spm::Util::parseUrl | ( | const std::string & | url | ) | throw (NetException) |
Parse an URL.
url | The URL to parse |
char* Spm::Util::recv | ( | int | fdSocket, | |
int & | size | |||
) | throw (NetException) |
Receive a string from network.
fdSocket | The socket | |
size | The number of bytes to read (will also contains the number of really readen bytes) |
void Spm::Util::removeDir | ( | const miniXml::ustring & | dir | ) |
Remove a directory and its content.
dir | The directory to remove |
void Spm::Util::sendTo | ( | int | fdSocket, | |
std::string & | str | |||
) | throw (NetException) |
send a string
fdSocket | A connection | |
str | The string to send |
miniXml::ustring Spm::Util::toString | ( | T | t | ) | [inline] |