Orocos Real-Time Toolkit  2.9.0
Classes | Namespaces | Functions
PropertyBag.hpp File Reference
#include "base/PropertyBase.hpp"
#include <vector>
#include <algorithm>

Go to the source code of this file.

Classes

class  RTT::PropertyBag
 A container for holding references to properties. More...
 
struct  RTT::PropertyBag::FindPropType< T >
 A function object for finding a Property by name and type. More...
 

Namespaces

 RTT
 Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
 

Functions

std::ostream & RTT::operator<< (std::ostream &os, const PropertyBag &bag)
 Recursively prints out the contents of this bag. More...
 
std::istream & RTT::operator>> (std::istream &is, PropertyBag &bag)
 Not implemented. More...
 
PropertyBase * RTT::findProperty (const PropertyBag &bag, const std::string &path, const std::string &separator=std::string("."))
 This function locates a Property in nested PropertyBags. More...
 
vector< string > RTT::listProperties (const PropertyBag &bag, const std::string &separator=std::string("."))
 List all properties in a PropertyBag in a single list. More...
 
vector< string > RTT::listPropertyDescriptions (const PropertyBag &bag, const std::string &separator=std::string("."))
 List all descriptions of properties in a PropertyBag in a single list. More...
 
bool RTT::storeProperty (PropertyBag &bag, const std::string &path, base::PropertyBase *item, const std::string &separator=std::string("."))
 Stores a property in a bag given a certain path with transfer of ownership. More...
 
bool RTT::removeProperty (PropertyBag &bag, const std::string &path, const std::string &separator=std::string("."))
 Removes a property from a bag given a certain path. More...
 
bool RTT::refreshProperties (const PropertyBag &target, const PropertyBag &source, bool strict=false)
 This function refreshes the values of the properties in one PropertyBag with the values of the properties of another PropertyBag. More...
 
bool RTT::refreshProperty (const PropertyBag &target, const base::PropertyBase &source)
 Refresh one Property in the target bag with the new value. More...
 
bool RTT::copyProperties (PropertyBag &target, const PropertyBag &source)
 This function copies (recursively) the Properties of one Bag into another Bag. More...
 
bool RTT::updateProperties (PropertyBag &target, const PropertyBag &source)
 This function updates (recursively) the values of Property objects of one Bag with the values of Property objects of another bag. More...
 
bool RTT::updateProperty (PropertyBag &target, const PropertyBag &source, const std::string &path, const std::string &separator=".")
 This function updates (recursively) the values of a single Property object of one Bag with the property of another bag. More...
 
bool RTT::refreshProperty (PropertyBag &target, const PropertyBag &source, const std::string &path, const std::string &separator=".")
 This function refreshes (recursively) the values of a single Property object of one Bag with the property of another bag. More...
 
void RTT::deleteProperties (PropertyBag &target)
 This function iterates over a PropertyBag and deletes all Property objects in it without recursion. More...
 
void RTT::deletePropertyBag (PropertyBag &target)
 This function iterates over a PropertyBag and recursively deletes all Property objects. More...
 
void RTT::flattenPropertyBag (PropertyBag &target, const std::string &separator=".")
 This function flattens a PropertyBag recursively. More...