#include <property_handler.hpp>
Public Types | |
typedef boost::shared_ptr< T > | t_ptr |
typedef std::vector < boost::shared_ptr< T > > | t_ptr_vector |
Public Member Functions | |
vector_property_handler (const std::string &property, t_ptr_vector &values, std::function< void(t_ptr_vector &, const config &)> &construction_factory) | |
component * | handle_get (const path_element &child) |
bool | handle_change (const path_element &child, config cfg) |
bool | handle_add (const path_element &child, const config &cfg) |
bool | handle_delete (const path_element &child) |
std::vector< component * > | handle_get_children () |
Public Member Functions inherited from ai::base_property_handler | |
virtual | ~base_property_handler () |
Protected Member Functions | |
void | call_factory (t_ptr_vector &vec, const config &cfg) |
Private Member Functions | |
bool | do_add (int pos, const config &cfg) |
Private Attributes | |
std::function< void(t_ptr_vector &, const config &)> | factory_ |
const std::string | property_ |
t_ptr_vector & | values_ |
Definition at line 74 of file property_handler.hpp.
typedef boost::shared_ptr<T> ai::vector_property_handler< T >::t_ptr |
Definition at line 76 of file property_handler.hpp.
typedef std::vector< boost::shared_ptr<T> > ai::vector_property_handler< T >::t_ptr_vector |
Definition at line 77 of file property_handler.hpp.
|
inline |
Definition at line 79 of file property_handler.hpp.
|
inlineprotected |
Definition at line 144 of file property_handler.hpp.
References ai::vector_property_handler< T >::factory_.
Referenced by ai::vector_property_handler< T >::do_add(), and ai::facets_property_handler< T >::handle_change().
|
inlineprivate |
Definition at line 149 of file property_handler.hpp.
References ai::vector_property_handler< T >::call_factory(), and ai::vector_property_handler< T >::values_.
Referenced by ai::vector_property_handler< T >::handle_add().
|
inlinevirtual |
Implements ai::base_property_handler.
Definition at line 102 of file property_handler.hpp.
References ai::vector_property_handler< T >::do_add(), ai::vector_property_handler< T >::handle_delete(), i, ai::path_element::id, ai::path_element::position, ai::path_element::property, ai::vector_property_handler< T >::property_, and ai::vector_property_handler< T >::values_.
Referenced by ai::vector_property_handler< T >::handle_change().
|
inlinevirtual |
Implements ai::base_property_handler.
Reimplemented in ai::facets_property_handler< T >.
Definition at line 91 of file property_handler.hpp.
References ai::vector_property_handler< T >::handle_add(), ai::vector_property_handler< T >::handle_delete(), config::has_attribute(), and ai::path_element::id.
Referenced by ai::facets_property_handler< T >::handle_change().
|
inlinevirtual |
Implements ai::base_property_handler.
Definition at line 117 of file property_handler.hpp.
References i, ai::path_element::id, and ai::vector_property_handler< T >::values_.
Referenced by ai::vector_property_handler< T >::handle_add(), and ai::vector_property_handler< T >::handle_change().
|
inlinevirtual |
Implements ai::base_property_handler.
Reimplemented in ai::facets_property_handler< T >.
Definition at line 83 of file property_handler.hpp.
References i, and ai::vector_property_handler< T >::values_.
Referenced by ai::facets_property_handler< T >::handle_get().
|
inlinevirtual |
Implements ai::base_property_handler.
Reimplemented in ai::facets_property_handler< T >.
Definition at line 134 of file property_handler.hpp.
References ai::vector_property_handler< T >::values_.
Referenced by ai::facets_property_handler< T >::handle_get_children().
|
private |
Definition at line 164 of file property_handler.hpp.
Referenced by ai::vector_property_handler< T >::call_factory().
|
private |
Definition at line 165 of file property_handler.hpp.
Referenced by ai::vector_property_handler< T >::handle_add().
|
private |
Definition at line 166 of file property_handler.hpp.
Referenced by ai::vector_property_handler< T >::do_add(), ai::vector_property_handler< T >::handle_add(), ai::vector_property_handler< T >::handle_delete(), ai::vector_property_handler< T >::handle_get(), and ai::vector_property_handler< T >::handle_get_children().