Go to the documentation of this file.
7 #ifndef BALL_CONCEPT_PROPERTY_H
8 #define BALL_CONCEPT_PROPERTY_H
14 #ifndef BALL_DATATYPE_BITVECTOR_H
18 #ifndef BALL_CONCEPT_PERSISTENTOBJECT_H
24 #include <boost/shared_ptr.hpp>
25 #include <boost/any.hpp>
182 NamedProperty(
const std::string& name, boost::shared_ptr<PersistentObject>& po);
557 void setProperty(
const std::string& name,
const std::string& value);
598 bool hasProperty(
Property property)
const;
641 void dump(std::ostream& s = std::cout,
Size depth = 0)
const;
648 std::vector<NamedProperty> named_properties_;
653 # ifndef BALL_NO_INLINE_FUNCTIONS
654 # include <BALL/CONCEPT/property.iC>
659 #endif // BALL_CONCEPT_PROPERTY_H
virtual void destroy()
Clears all properties.
const NamedProperty & getProperty(const std::string &name) const
void setProperty(const std::string &name, float value)
Size countNamedProperties() const
Type getType() const
Return the type of the data stored in the property object.
const NamedProperty & getNamedProperty(Position index) const
NamedProperty(const std::string &name, float value)
unsigned int getUnsignedInt() const
Size countProperties() const
BALL_EXPORT bool operator!=(const String &s1, const String &s2)
void setProperty(const std::string &name, unsigned int value)
NamedProperty(const std::string &name, unsigned int value)
NamedProperty(const NamedProperty &)
void setProperty(const std::string &name)
NamedPropertyIterator endNamedProperty()
NamedProperty(const std::string &name, PersistentObject &po)
virtual void persistentWrite(PersistenceManager &pm, const char *name="") const
NamedProperty(const NamedProperty &, const std::string &name)
virtual void clear()
Clears all properties.
NamedProperty(const std::string &name)
bool hasProperty(const std::string &name) const
Query for a named property.
void dump(std::ostream &s=std::cout, Size depth=0) const
void setProperty(const std::string &name, const std::string &value)
void set(const PropertyManager &property_manager)
BALL_INLINE PropertyManager()
Default constructor.
void setProperty(Property property)
BALL_INLINE PropertyManager(const PropertyManager &property_manager)
Copy constructor.
NamedProperty(const std::string &name, boost::shared_ptr< PersistentObject > &po)
boost::shared_ptr< PersistentObject > getSmartObject() const
void setProperty(const NamedProperty &property)
NamedProperty(const std::string &name, const std::string &str)
PersistentObject * getObject() const
void get(PropertyManager &property_manager) const
void clearProperty(const std::string &name)
void setProperty(const std::string &name, bool value)
NamedProperty & getNamedProperty(Position index)
NamedProperty(const std::string &name, int value)
BALL_EXPORT bool operator==(const String &s1, const String &s2)
void swap(PropertyManager &property_manager)
NamedProperty(const std::string &name, double value)
BitVector & getBitVector()
const std::string & getName() const
Return the name of the property.
virtual void persistentRead(PersistenceManager &pm)
void clearProperty(Property property)
void setProperty(const std::string &name, double value)
#define BALL_CREATE(name)
void setProperty(const std::string &name, const PersistentObject &value)
NamedPropertyIterator beginNamedProperty()
const BitVector & getBitVector() const
void toggleProperty(Property property)
void setProperty(const std::string &name, int value)
NamedProperty(const std::string &name, bool value)
std::vector< NamedProperty >::iterator NamedPropertyIterator
bool read(PersistenceManager &pm)
Persistent stream reading.
virtual ~PropertyManager()
Destructor.