YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
yarp::os::Property::Private Class Reference

Public Member Functions

 Private (Property *owner)
 
PropertyItemgetPropNoCreate (const std::string &key) const
 
PropertyItemgetProp (const std::string &key, bool create=true)
 
void put (const std::string &key, const std::string &val)
 
void put (const std::string &key, const Value &bit)
 
void put (const std::string &key, Value *bit)
 
PropertyaddGroup (const std::string &key)
 
void unput (const std::string &key)
 
bool check (const std::string &key) const
 
Valueget (const std::string &key) const
 
BottleputBottleCompat (const char *key, const Bottle &val)
 
BottleputBottle (const char *key, const Bottle &val)
 
BottleputBottle (const char *key)
 
BottlegetBottle (const std::string &key) const
 
void clear ()
 
void fromString (const std::string &txt, bool wipe=true)
 
void fromCommand (int argc, char *argv[], bool wipe=true)
 
bool readDir (const std::string &dirname, yarp::os::impl::DIR *&dir, std::string &result, const std::string &section=std::string())
 
bool readFile (const std::string &fname, std::string &result, bool allowDir)
 
bool fromConfigFile (const std::string &fname, Searchable &env, bool wipe=true)
 
bool fromConfigDir (const std::string &dirname, const std::string &section, bool wipe=true)
 
void fromConfig (const char *txt, Searchable &env, bool wipe=true)
 
void fromBottle (Bottle &bot, bool wipe=true)
 
std::string toString () const
 
std::string expand (const char *txt, Searchable &env, Searchable &env2)
 
void fromArguments (const char *command, bool wipe=true)
 
void parseArguments (char *azParam, int *argc, char **argv, int max_arg)
 
void splitArguments (char *line, char **args)
 

Public Attributes

std::map< std::string, PropertyItemdata
 
Propertyowner
 

Detailed Description

Definition at line 99 of file Property.cpp.

Constructor & Destructor Documentation

◆ Private()

yarp::os::Property::Private::Private ( Property owner)
inlineexplicit

Definition at line 105 of file Property.cpp.

Member Function Documentation

◆ addGroup()

Property & yarp::os::Property::Private::addGroup ( const std::string &  key)
inline

Definition at line 160 of file Property.cpp.

◆ check()

bool yarp::os::Property::Private::check ( const std::string &  key) const
inline

Definition at line 175 of file Property.cpp.

◆ clear()

void yarp::os::Property::Private::clear ( )
inline

Definition at line 230 of file Property.cpp.

◆ expand()

std::string yarp::os::Property::Private::expand ( const char txt,
Searchable env,
Searchable env2 
)
inline

Definition at line 741 of file Property.cpp.

◆ fromArguments()

void yarp::os::Property::Private::fromArguments ( const char command,
bool  wipe = true 
)
inline

Definition at line 840 of file Property.cpp.

◆ fromBottle()

void yarp::os::Property::Private::fromBottle ( Bottle bot,
bool  wipe = true 
)
inline

Definition at line 714 of file Property.cpp.

◆ fromCommand()

void yarp::os::Property::Private::fromCommand ( int  argc,
char argv[],
bool  wipe = true 
)
inline

Definition at line 242 of file Property.cpp.

◆ fromConfig()

void yarp::os::Property::Private::fromConfig ( const char txt,
Searchable env,
bool  wipe = true 
)
inline

Definition at line 473 of file Property.cpp.

◆ fromConfigDir()

bool yarp::os::Property::Private::fromConfigDir ( const std::string &  dirname,
const std::string &  section,
bool  wipe = true 
)
inline

Definition at line 448 of file Property.cpp.

◆ fromConfigFile()

bool yarp::os::Property::Private::fromConfigFile ( const std::string &  fname,
Searchable env,
bool  wipe = true 
)
inline

Definition at line 387 of file Property.cpp.

◆ fromString()

void yarp::os::Property::Private::fromString ( const std::string &  txt,
bool  wipe = true 
)
inline

Definition at line 235 of file Property.cpp.

◆ get()

Value & yarp::os::Property::Private::get ( const std::string &  key) const
inline

Definition at line 181 of file Property.cpp.

◆ getBottle()

Bottle * yarp::os::Property::Private::getBottle ( const std::string &  key) const
inline

Definition at line 220 of file Property.cpp.

◆ getProp()

PropertyItem * yarp::os::Property::Private::getProp ( const std::string &  key,
bool  create = true 
)
inline

Definition at line 119 of file Property.cpp.

◆ getPropNoCreate()

PropertyItem * yarp::os::Property::Private::getPropNoCreate ( const std::string &  key) const
inline

Definition at line 110 of file Property.cpp.

◆ parseArguments()

void yarp::os::Property::Private::parseArguments ( char azParam,
int argc,
char **  argv,
int  max_arg 
)
inline

Definition at line 856 of file Property.cpp.

◆ put() [1/3]

void yarp::os::Property::Private::put ( const std::string &  key,
const std::string &  val 
)
inline

Definition at line 133 of file Property.cpp.

◆ put() [2/3]

void yarp::os::Property::Private::put ( const std::string &  key,
const Value bit 
)
inline

Definition at line 142 of file Property.cpp.

◆ put() [3/3]

void yarp::os::Property::Private::put ( const std::string &  key,
Value bit 
)
inline

Definition at line 151 of file Property.cpp.

◆ putBottle() [1/2]

Bottle & yarp::os::Property::Private::putBottle ( const char key)
inline

Definition at line 211 of file Property.cpp.

◆ putBottle() [2/2]

Bottle & yarp::os::Property::Private::putBottle ( const char key,
const Bottle val 
)
inline

Definition at line 202 of file Property.cpp.

◆ putBottleCompat()

Bottle & yarp::os::Property::Private::putBottleCompat ( const char key,
const Bottle val 
)
inline

Definition at line 191 of file Property.cpp.

◆ readDir()

bool yarp::os::Property::Private::readDir ( const std::string &  dirname,
yarp::os::impl::DIR *&  dir,
std::string &  result,
const std::string &  section = std::string() 
)
inline

Definition at line 330 of file Property.cpp.

◆ readFile()

bool yarp::os::Property::Private::readFile ( const std::string &  fname,
std::string &  result,
bool  allowDir 
)
inline

Definition at line 365 of file Property.cpp.

◆ splitArguments()

void yarp::os::Property::Private::splitArguments ( char line,
char **  args 
)
inline

Definition at line 901 of file Property.cpp.

◆ toString()

std::string yarp::os::Property::Private::toString ( ) const
inline

Definition at line 728 of file Property.cpp.

◆ unput()

void yarp::os::Property::Private::unput ( const std::string &  key)
inline

Definition at line 170 of file Property.cpp.

Member Data Documentation

◆ data

std::map<std::string, PropertyItem> yarp::os::Property::Private::data

Definition at line 102 of file Property.cpp.

◆ owner

Property* yarp::os::Property::Private::owner

Definition at line 103 of file Property.cpp.


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