1#include "base_generator.h"
9 return "base_generator";
17 if (
apa !=
i->second) {
51 return i->second->has_changed;
61 res +=
i->first+
':'+
i->second->get_type_name();
71 return i->second->set(value_type, value_ptr);
80 return i->second->get(value_type, value_ptr);
virtual bool end()
perform the leave part of the action on the current object
std::string get_property_declarations()
returns a semicolon separated list of property declarations
~base_generator()
during destruction free all memory allocated on heap
map_type property_map
store the properties as map from property name to type and pointer to instance
std::string get_type_name() const
overload to return the type name of this object. By default the type interface is queried over get_ty...
void add_void(const std::string &name, abst_property_access *apa)
add a new property
bool set_void(const std::string &property, const std::string &value_type, const void *value_ptr)
abstract interface for the setter of a dynamic property.
bool changed(const std::string &property) const
return whether property has changed
bool get_void(const std::string &property, const std::string &value_type, void *value_ptr)
abstract interface for the getter of a dynamic property.
void del(const std::string &property)
remove a property
complete implementation of method actions that only call one method when entering a node
bool begin()
uses call_method of base class method_action to call the method refered to by the stored method point...