TwiceAsNice  2019-02-18
Public Member Functions | Static Public Member Functions | Protected Attributes | Static Protected Attributes | Private Member Functions | List of all members
Nice::AppConfig Class Reference

#include <Config.h>

Inheritance diagram for Nice::AppConfig:
Inheritance graph
Collaboration diagram for Nice::AppConfig:
Collaboration graph

Public Member Functions

void parseCommandLineOptions (int argc, char **argv)
 
void loadFile (const std::string &_filename)
 
void checkForExtraPath (Nice::JointPtr &_tree)
 
void dumpConfigTree (Nice::JointPtr &_tree)
 
void buildRecursive (Nice::JointPtr &_tree)
 
void loadGlobalConfigFile (Nice::JointPtr &_tree)
 
void loadGlobalAliasFile (Nice::JointPtr &_tree)
 
void loadConfigFileTree (Nice::JointPtr &_tree)
 
void loadConfigRemoteTree (Nice::JointPtr &_tree)
 
void loadLocatorType (Nice::JointPtr &_tree)
 
void loadFileType (Nice::JointPtr &_tree)
 
void link (Nice::JointPtr &_tree)
 
Nice::JointPtrget ()
 
void parseCommandLineOptions (int argc, char **argv)
 
void loadFile (const std::string &_filename)
 
void checkForExtraPath (Nice::JointPtr &_tree)
 
void dumpConfigTree (Nice::JointPtr &_tree)
 
void buildRecursive (Nice::JointPtr &_tree)
 
void loadGlobalConfigFile (Nice::JointPtr &_tree)
 
void loadGlobalAliasFile (Nice::JointPtr &_tree)
 
void loadConfigFileTree (Nice::JointPtr &_tree)
 
void loadConfigRemoteTree (Nice::JointPtr &_tree)
 
void loadLocatorType (Nice::JointPtr &_tree)
 
void loadFileType (Nice::JointPtr &_tree)
 
void link (Nice::JointPtr &_tree)
 
Nice::JointPtrget ()
 

Static Public Member Functions

static Nice::AppConfigPtr preinitialize ()
 Convert a sequence of command-line options into properties. More...
 
static Nice::AppConfigPtr initializePhase1 (int argc, char **argv)
 
static Nice::AppConfigPtr initializePhase2 (int argc, char **argv)
 
static void loadFileAtNode (const std::string &_filename, const Nice::JointPtr &_node)
 
static void loadFileAtNode (const std::string &_filename, const std::string &_node)
 
static void deinitialize ()
 
static const Nice::AppConfigPtrconfig ()
 
static std::string INSROOT ()
 
static std::string configExtraPath ()
 
static std::string niceTypePath ()
 
static std::string LD_LIBRARY_PATH ()
 
static std::string fileByPath (const std::string &_file, bool _create)
 
static Nice::AppConfigPtr preinitialize ()
 Convert a sequence of command-line options into properties. More...
 
static Nice::AppConfigPtr initializePhase1 (int argc, char **argv)
 
static Nice::AppConfigPtr initializePhase2 (int argc, char **argv)
 
static void loadFileAtNode (const std::string &_filename, const Nice::JointPtr &_node)
 
static void loadFileAtNode (const std::string &_filename, const std::string &_node)
 
static void deinitialize ()
 
static const Nice::AppConfigPtrconfig ()
 
static std::string INSROOT ()
 
static std::string configExtraPath ()
 
static std::string niceTypePath ()
 
static std::string LD_LIBRARY_PATH ()
 
static std::string fileByPath (const std::string &_file, bool _create)
 

Protected Attributes

Nice::JointPtr m_tree
 

Static Protected Attributes

static Nice::FileByPath s_fileByPath
 
static Nice::AppConfigPtr s_instance = 0
 

Private Member Functions

 AppConfig ()
 
 ~AppConfig ()
 
void loadAllNiceTypeLibraries ()
 
void loadNiceTypeLibrariesFrom (const std::string &libraryDirectoryName)
 
 AppConfig ()
 
 ~AppConfig ()
 
void loadAllNiceTypeLibraries ()
 
void loadNiceTypeLibrariesFrom (const std::string &libraryDirectoryName)
 

Constructor & Destructor Documentation

◆ AppConfig() [1/2]

Nice::AppConfig::AppConfig ( )
private

◆ ~AppConfig() [1/2]

Nice::AppConfig::~AppConfig ( )
private

◆ AppConfig() [2/2]

Nice::AppConfig::AppConfig ( )
private

◆ ~AppConfig() [2/2]

Nice::AppConfig::~AppConfig ( )
private

Member Function Documentation

◆ buildRecursive() [1/2]

void Nice::AppConfig::buildRecursive ( Nice::JointPtr _tree)

◆ buildRecursive() [2/2]

void Nice::AppConfig::buildRecursive ( Nice::JointPtr _tree)

◆ checkForExtraPath() [1/2]

void Nice::AppConfig::checkForExtraPath ( Nice::JointPtr _tree)

◆ checkForExtraPath() [2/2]

void Nice::AppConfig::checkForExtraPath ( Nice::JointPtr _tree)

◆ config() [1/2]

static const Nice::AppConfigPtr& Nice::AppConfig::config ( )
inlinestatic

◆ config() [2/2]

static const Nice::AppConfigPtr& Nice::AppConfig::config ( )
inlinestatic

◆ configExtraPath() [1/2]

static std::string Nice::AppConfig::configExtraPath ( )
inlinestatic

◆ configExtraPath() [2/2]

static std::string Nice::AppConfig::configExtraPath ( )
inlinestatic

◆ deinitialize() [1/2]

void Nice::AppConfig::deinitialize ( )
static

◆ deinitialize() [2/2]

static void Nice::AppConfig::deinitialize ( )
static

◆ dumpConfigTree() [1/2]

void Nice::AppConfig::dumpConfigTree ( Nice::JointPtr _tree)

◆ dumpConfigTree() [2/2]

void Nice::AppConfig::dumpConfigTree ( Nice::JointPtr _tree)

◆ fileByPath() [1/2]

static std::string Nice::AppConfig::fileByPath ( const std::string &  _file,
bool  _create 
)
inlinestatic

◆ fileByPath() [2/2]

static std::string Nice::AppConfig::fileByPath ( const std::string &  _file,
bool  _create 
)
inlinestatic

◆ get() [1/2]

Nice::JointPtr& Nice::AppConfig::get ( )
inline

◆ get() [2/2]

Nice::JointPtr& Nice::AppConfig::get ( void  )
inline

◆ initializePhase1() [1/2]

Nice::AppConfigPtr Nice::AppConfig::initializePhase1 ( int  argc,
char **  argv 
)
static

◆ initializePhase1() [2/2]

static Nice::AppConfigPtr Nice::AppConfig::initializePhase1 ( int  argc,
char **  argv 
)
static

◆ initializePhase2() [1/2]

Nice::AppConfigPtr Nice::AppConfig::initializePhase2 ( int  argc,
char **  argv 
)
static

◆ initializePhase2() [2/2]

static Nice::AppConfigPtr Nice::AppConfig::initializePhase2 ( int  argc,
char **  argv 
)
static

◆ INSROOT() [1/2]

static std::string Nice::AppConfig::INSROOT ( )
inlinestatic

◆ INSROOT() [2/2]

static std::string Nice::AppConfig::INSROOT ( )
inlinestatic

◆ LD_LIBRARY_PATH() [1/2]

static std::string Nice::AppConfig::LD_LIBRARY_PATH ( )
inlinestatic

◆ LD_LIBRARY_PATH() [2/2]

static std::string Nice::AppConfig::LD_LIBRARY_PATH ( )
inlinestatic

◆ link() [1/2]

void Nice::AppConfig::link ( Nice::JointPtr _tree)

◆ link() [2/2]

void Nice::AppConfig::link ( Nice::JointPtr _tree)

◆ loadAllNiceTypeLibraries() [1/2]

void Nice::AppConfig::loadAllNiceTypeLibraries ( )
private

◆ loadAllNiceTypeLibraries() [2/2]

void Nice::AppConfig::loadAllNiceTypeLibraries ( )
private

◆ loadConfigFileTree() [1/2]

void Nice::AppConfig::loadConfigFileTree ( Nice::JointPtr _tree)

◆ loadConfigFileTree() [2/2]

void Nice::AppConfig::loadConfigFileTree ( Nice::JointPtr _tree)

◆ loadConfigRemoteTree() [1/2]

void Nice::AppConfig::loadConfigRemoteTree ( Nice::JointPtr _tree)

◆ loadConfigRemoteTree() [2/2]

void Nice::AppConfig::loadConfigRemoteTree ( Nice::JointPtr _tree)

◆ loadFile() [1/2]

void Nice::AppConfig::loadFile ( const std::string &  _filename)

◆ loadFile() [2/2]

void Nice::AppConfig::loadFile ( const std::string &  _filename)

◆ loadFileAtNode() [1/4]

static void Nice::AppConfig::loadFileAtNode ( const std::string &  _filename,
const Nice::JointPtr _node 
)
static

◆ loadFileAtNode() [2/4]

void Nice::AppConfig::loadFileAtNode ( const std::string &  _filename,
const Nice::JointPtr _node 
)
static

◆ loadFileAtNode() [3/4]

static void Nice::AppConfig::loadFileAtNode ( const std::string &  _filename,
const std::string &  _node 
)
static

◆ loadFileAtNode() [4/4]

void Nice::AppConfig::loadFileAtNode ( const std::string &  _filename,
const std::string &  _node 
)
static

◆ loadFileType() [1/2]

void Nice::AppConfig::loadFileType ( Nice::JointPtr _tree)

◆ loadFileType() [2/2]

void Nice::AppConfig::loadFileType ( Nice::JointPtr _tree)

◆ loadGlobalAliasFile() [1/2]

void Nice::AppConfig::loadGlobalAliasFile ( Nice::JointPtr _tree)

◆ loadGlobalAliasFile() [2/2]

void Nice::AppConfig::loadGlobalAliasFile ( Nice::JointPtr _tree)

◆ loadGlobalConfigFile() [1/2]

void Nice::AppConfig::loadGlobalConfigFile ( Nice::JointPtr _tree)

◆ loadGlobalConfigFile() [2/2]

void Nice::AppConfig::loadGlobalConfigFile ( Nice::JointPtr _tree)

◆ loadLocatorType() [1/2]

void Nice::AppConfig::loadLocatorType ( Nice::JointPtr _tree)

◆ loadLocatorType() [2/2]

void Nice::AppConfig::loadLocatorType ( Nice::JointPtr _tree)

◆ loadNiceTypeLibrariesFrom() [1/2]

void Nice::AppConfig::loadNiceTypeLibrariesFrom ( const std::string &  libraryDirectoryName)
private

◆ loadNiceTypeLibrariesFrom() [2/2]

void Nice::AppConfig::loadNiceTypeLibrariesFrom ( const std::string &  libraryDirectoryName)
private

◆ niceTypePath() [1/2]

static std::string Nice::AppConfig::niceTypePath ( )
inlinestatic

◆ niceTypePath() [2/2]

static std::string Nice::AppConfig::niceTypePath ( )
inlinestatic

◆ parseCommandLineOptions() [1/2]

void Nice::AppConfig::parseCommandLineOptions ( int  argc,
char **  argv 
)

◆ parseCommandLineOptions() [2/2]

void Nice::AppConfig::parseCommandLineOptions ( int  argc,
char **  argv 
)

◆ preinitialize() [1/2]

Nice::AppConfigPtr Nice::AppConfig::preinitialize ( )
static

Convert a sequence of command-line options into properties.

All options that begin with prefix. are converted into properties. If the prefix is empty, all options that begin with are converted to properties.

Parameters
prefixThe property prefix, or an empty string to convert all options starting with .
optionsThe command-line options.
Returns
The command-line options that do not start with the specified prefix, in their original order.

◆ preinitialize() [2/2]

static Nice::AppConfigPtr Nice::AppConfig::preinitialize ( )
static

Convert a sequence of command-line options into properties.

All options that begin with prefix. are converted into properties. If the prefix is empty, all options that begin with are converted to properties.

Parameters
prefixThe property prefix, or an empty string to convert all options starting with .
optionsThe command-line options.
Returns
The command-line options that do not start with the specified prefix, in their original order.

Member Data Documentation

◆ m_tree

Nice::JointPtr Nice::AppConfig::m_tree
protected

◆ s_fileByPath

static Nice::FileByPath Nice::AppConfig::s_fileByPath
staticprotected

◆ s_instance

static Nice::AppConfigPtr Nice::AppConfig::s_instance = 0
staticprotected

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