YARP
Yet Another Robot Platform
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 103 of file Property.cpp.

Constructor & Destructor Documentation

◆ Private()

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

Definition at line 109 of file Property.cpp.

Member Function Documentation

◆ addGroup()

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

Definition at line 167 of file Property.cpp.

◆ check()

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

Definition at line 183 of file Property.cpp.

◆ clear()

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

Definition at line 258 of file Property.cpp.

◆ expand()

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

Definition at line 742 of file Property.cpp.

◆ fromArguments()

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

Definition at line 841 of file Property.cpp.

◆ fromBottle()

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

Definition at line 715 of file Property.cpp.

◆ fromCommand()

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

Definition at line 270 of file Property.cpp.

◆ fromConfig()

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

Definition at line 502 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 477 of file Property.cpp.

◆ fromConfigFile()

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

Definition at line 415 of file Property.cpp.

◆ fromString()

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

Definition at line 263 of file Property.cpp.

◆ get()

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

Definition at line 195 of file Property.cpp.

◆ getBottle()

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

Definition at line 248 of file Property.cpp.

◆ getProp()

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

Definition at line 123 of file Property.cpp.

◆ getPropNoCreate()

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

Definition at line 114 of file Property.cpp.

◆ parseArguments()

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

Definition at line 857 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 137 of file Property.cpp.

◆ put() [2/3]

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

Definition at line 147 of file Property.cpp.

◆ put() [3/3]

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

Definition at line 157 of file Property.cpp.

◆ putBottle() [1/2]

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

Definition at line 238 of file Property.cpp.

◆ putBottle() [2/2]

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

Definition at line 228 of file Property.cpp.

◆ putBottleCompat()

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

Definition at line 217 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 358 of file Property.cpp.

◆ readFile()

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

Definition at line 393 of file Property.cpp.

◆ splitArguments()

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

Definition at line 902 of file Property.cpp.

◆ toString()

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

Definition at line 729 of file Property.cpp.

◆ unput()

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

Definition at line 178 of file Property.cpp.

Member Data Documentation

◆ data

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

Definition at line 106 of file Property.cpp.

◆ owner

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

Definition at line 107 of file Property.cpp.


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