SOFA API  ca665544
Open source framework for multi-physics simuation
sofa::helper::system Namespace Reference

Namespaces

 thread
 

Classes

class  DynamicLibrary
 Wrapper around the dynamic library facilities of the operating system. More...
 
class  FileEventListener
 Contains an event-based API to monitor file changes. More...
 
class  FileMonitor
 
class  MonitoredFile
 
class  FileRepository
 
class  FileSystem
 Contains functions to interact with the file system. More...
 
class  Locale
 
class  TemporaryLocale
 RAII class to modify the locale temporarily. More...
 
class  PipeProcess
 
class  Plugin
 
class  PluginManager
 
class  SetDirectory
 

Typedefs

typedef vector< string > ListOfFiles
 
typedef vector< FileEventListener * > ListOfListeners
 
typedef list< MonitoredFile * > ListOfMonitors
 

Functions

const chareventmaskToString (int evtmask)
 
void addAFileListenerInDict (string pathfilename, FileEventListener *listener)
 
int FileMonitor_init ()
 
void catch_alarm (int sig)
 
std::string cleanPath (const std::string &path)
 

Variables

map< string, ListOfFilesdir2files
 
map< int, string > fd2fn
 
map< string, ListOfListenersfile2listener
 
int filemonitor_inotifyfd =-1
 
ListOfMonitors monitors
 
volatile sig_atomic_t keep_going = 1
 
FileRepository PluginRepository ("SOFA_PLUGIN_PATH", { Utils::getSofaPathTo("plugins"), Utils::getSofaPathTo("collections"), Utils::getSofaPathTo("lib"), })
 Default repository. More...
 
FileRepository DataRepository ("SOFA_DATA_PATH", { Utils::getSofaPathTo("share/sofa"), Utils::getSofaPathTo("share/sofa/examples") }, { { Utils::getSofaPathTo("etc/sofa.ini"), {"SHARE_DIR", "EXAMPLES_DIR"} } })
 Default repository. More...
 

Typedef Documentation

◆ ListOfFiles

◆ ListOfListeners

◆ ListOfMonitors

Function Documentation

◆ addAFileListenerInDict()

void sofa::helper::system::addAFileListenerInDict ( string  pathfilename,
FileEventListener listener 
)

◆ catch_alarm()

void sofa::helper::system::catch_alarm ( int  sig)

◆ cleanPath()

std::string sofa::helper::system::cleanPath ( const std::string &  path)

◆ eventmaskToString()

const char * sofa::helper::system::eventmaskToString ( int  evtmask)

◆ FileMonitor_init()

int sofa::helper::system::FileMonitor_init ( )

Variable Documentation

◆ DataRepository

SOFA_HELPER_API FileRepository sofa::helper::system::DataRepository ( "SOFA_DATA_PATH"  ,
{ Utils::getSofaPathTo("share/sofa"), Utils::getSofaPathTo("share/sofa/examples") }  ,
{ { Utils::getSofaPathTo("etc/sofa.ini"), {"SHARE_DIR", "EXAMPLES_DIR"} } }   
)

Default repository.

◆ dir2files

map<string, ListOfFiles> sofa::helper::system::dir2files

◆ fd2fn

map<int, string> sofa::helper::system::fd2fn

◆ file2listener

map<string, ListOfListeners> sofa::helper::system::file2listener

◆ filemonitor_inotifyfd

int sofa::helper::system::filemonitor_inotifyfd =-1

◆ keep_going

volatile sig_atomic_t sofa::helper::system::keep_going = 1

◆ monitors

ListOfMonitors sofa::helper::system::monitors

◆ PluginRepository

SOFA_HELPER_API FileRepository sofa::helper::system::PluginRepository ( "SOFA_PLUGIN_PATH"  ,
{ Utils::getSofaPathTo("plugins"), Utils::getSofaPathTo("collections"), Utils::getSofaPathTo("lib"), }   
)

Default repository.