DDS  ver. 2.0
Public Member Functions | Static Public Member Functions | List of all members
dds::user_defaults_api::CUserDefaults Class Reference

#include <UserDefaults.h>

Public Member Functions

void reinit (const boost::uuids::uuid &_sid, const std::string &_cfgFileName, bool _get_default=false)
 
std::string getValueForKey (const std::string &_key) const
 
const SDDSUserDefaultsOptions_t getOptions () const
 
std::string getServerInfoFileLocationSrv () const
 
std::string getServerInfoFileName () const
 
std::string getServerInfoFileLocation () const
 
std::string getWrkPkgDir () const
 
std::string getWrkPkgPath () const
 
std::string getWrkScriptPath () const
 
std::string getUserEnvScript () const
 
std::string getLogFile () const
 
std::string getAgentLogStorageDir () const
 
pid_t getScoutPid () const
 
std::string getSMInputName () const
 
std::string getSMOutputName () const
 
std::string getSMAgentInputName () const
 
std::string getSMAgentOutputName () const
 
std::string getSMAgentLeaderOutputName () const
 
std::string getPluginsRootDir () const
 
std::string getMainSIDFile () const
 Returns the full path to the main Session ID file The function doesn't check wheather the file exists or not. More...
 
std::string getSIDFile () const
 Returns Session ID full file path (return main SID if exists. If there is no main, it checks for a clone SID. If none of SID exist, the fucntions returns an empty string) More...
 
std::string getLockedSID () const
 
std::string getCurrentSID () const
 
std::string getDefaultSIDFile () const
 
std::string getDefaultSID () const
 
std::string getAgentNamedMutexName () const
 
std::string getSessionsRootDir () const
 
std::string getSessionsHolderDirName () const
 
std::string getCommanderPidFileName () const
 
std::string getCommanderPidFile () const
 
std::string getPluginDir (const std::string &_path, const std::string &_pluginName) const
 Returns path to the plugin's directory for specified plug-in name. More...
 

Static Public Member Functions

static CUserDefaultsinstance (const boost::uuids::uuid &_sid=CUserDefaults::getInitialSID())
 Return singleton instance. More...
 
static boost::uuids::uuid getInitialSID ()
 
static void printDefaults (std::ostream &_stream)
 
static std::string currentUDFile ()
 
static std::string getDDSPath ()
 
static std::string getAgentIDFile ()
 

Member Function Documentation

◆ currentUDFile()

string CUserDefaults::currentUDFile ( )
static

◆ getAgentIDFile()

string CUserDefaults::getAgentIDFile ( )
static

◆ getAgentLogStorageDir()

string CUserDefaults::getAgentLogStorageDir ( ) const

◆ getAgentNamedMutexName()

string CUserDefaults::getAgentNamedMutexName ( ) const

◆ getCommanderPidFile()

string CUserDefaults::getCommanderPidFile ( ) const

◆ getCommanderPidFileName()

string CUserDefaults::getCommanderPidFileName ( ) const

◆ getCurrentSID()

string CUserDefaults::getCurrentSID ( ) const

◆ getDDSPath()

string CUserDefaults::getDDSPath ( )
static

◆ getDefaultSID()

string CUserDefaults::getDefaultSID ( ) const

◆ getDefaultSIDFile()

string CUserDefaults::getDefaultSIDFile ( ) const

◆ getInitialSID()

boost::uuids::uuid CUserDefaults::getInitialSID ( )
static

◆ getLockedSID()

string CUserDefaults::getLockedSID ( ) const

◆ getLogFile()

string CUserDefaults::getLogFile ( ) const

◆ getMainSIDFile()

string CUserDefaults::getMainSIDFile ( ) const

Returns the full path to the main Session ID file The function doesn't check wheather the file exists or not.

◆ getOptions()

const SDDSUserDefaultsOptions_t CUserDefaults::getOptions ( ) const

◆ getPluginDir()

string CUserDefaults::getPluginDir ( const std::string &  _path,
const std::string &  _pluginName 
) const

Returns path to the plugin's directory for specified plug-in name.

Parameters
[in]_pathPath to the root plug-ins directory. If not specified (i.e. empty string is provided) than default root plug-ins directory is used.
[in]_pluginNameName of the plug-in.

◆ getPluginsRootDir()

string CUserDefaults::getPluginsRootDir ( ) const

◆ getScoutPid()

pid_t CUserDefaults::getScoutPid ( ) const

◆ getServerInfoFileLocation()

string CUserDefaults::getServerInfoFileLocation ( ) const

◆ getServerInfoFileLocationSrv()

string CUserDefaults::getServerInfoFileLocationSrv ( ) const

◆ getServerInfoFileName()

string CUserDefaults::getServerInfoFileName ( ) const

◆ getSessionsHolderDirName()

string CUserDefaults::getSessionsHolderDirName ( ) const

◆ getSessionsRootDir()

string CUserDefaults::getSessionsRootDir ( ) const

◆ getSIDFile()

string CUserDefaults::getSIDFile ( ) const

Returns Session ID full file path (return main SID if exists. If there is no main, it checks for a clone SID. If none of SID exist, the fucntions returns an empty string)

◆ getSMAgentInputName()

std::string CUserDefaults::getSMAgentInputName ( ) const

◆ getSMAgentLeaderOutputName()

std::string CUserDefaults::getSMAgentLeaderOutputName ( ) const

◆ getSMAgentOutputName()

std::string CUserDefaults::getSMAgentOutputName ( ) const

◆ getSMInputName()

string CUserDefaults::getSMInputName ( ) const

◆ getSMOutputName()

string CUserDefaults::getSMOutputName ( ) const

◆ getUserEnvScript()

string CUserDefaults::getUserEnvScript ( ) const

◆ getValueForKey()

string CUserDefaults::getValueForKey ( const std::string &  _key) const

◆ getWrkPkgDir()

string CUserDefaults::getWrkPkgDir ( ) const

◆ getWrkPkgPath()

string CUserDefaults::getWrkPkgPath ( ) const

◆ getWrkScriptPath()

string CUserDefaults::getWrkScriptPath ( ) const

◆ instance()

CUserDefaults & CUserDefaults::instance ( const boost::uuids::uuid &  _sid = CUserDefaults::getInitialSID())
static

Return singleton instance.

◆ printDefaults()

void CUserDefaults::printDefaults ( std::ostream &  _stream)
static

◆ reinit()

void CUserDefaults::reinit ( const boost::uuids::uuid &  _sid,
const std::string &  _cfgFileName,
bool  _get_default = false 
)

The documentation for this class was generated from the following files: