43 #include <boost/bind.hpp> 46 using namespace detail;
48 using namespace boost;
63 for ( map_t::const_iterator i =
values.begin(); i !=
values.end(); ++i ) {
64 ar->
setValue((*i)->copy( repl, inst ) );
72 for ( map_t::iterator i =
values.begin(); i !=
values.end(); ++i )
82 map_t::iterator i = find(
values.begin(),
values.end(), value );
103 if ( i !=
values.end() ) {
114 if ( i ==
values.end() )
return 0;
126 return (bag.find(name) != 0);
131 if ( bag.find( p.
getName() ) ) {
140 std::vector<std::string> ret;
146 values.insert(
values.end(), new_values.begin(), new_values.end());
159 log(
Error) <<
"You tried to add a null pointer in '"<< where <<
"' for the object '" << name <<
"'. Fix your code !"<<
endlog();
bool setValue(base::AttributeBase *ab)
bool hasAttribute(const std::string &name) const
PropertyBag * properties()
A container for holding references to properties.
virtual DataSourceBase::shared_ptr getDataSource() const =0
void removeAttribute(const std::string &name)
~ConfigurationInterface()
void loadValues(AttributeObjects const &new_values)
base::AttributeBase * getValue(const std::string &name) const
bool chkPtr(const std::string &where, const std::string &name, const void *ptr)
A class for keeping track of Attribute, Constant and Property objects of a TaskContext. It allows plugins and remote components to browse the attributes and properties of a TaskContext.
bool removeValue(const std::string &name)
Property< T > & addProperty(const std::string &name, T &prop)
bool hasProperty(const std::string &name) const
AttributeNames getAttributeNames() const
std::vector< base::AttributeBase * > AttributeObjects
const std::string & getName() const
std::vector< typename MapT::mapped_type > values(const MapT &map)
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
const std::string & getName() const
ConfigurationInterface * copy(std::map< const base::DataSourceBase *, base::DataSourceBase * > &repl, bool instantiate) const
bool removeProperty(base::PropertyBase &p)
static Logger::LogFunction endlog()