#include <property_handler.hpp>
Public Types | |
typedef std::shared_ptr< T > | ptr |
typedef std::vector< std::shared_ptr< T > > | ptr_vector |
Public Member Functions | |
vector_property_handler (const std::string &property, ptr_vector &values, std::function< void(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 (ptr_vector &vec, const config &cfg) |
Private Member Functions | |
bool | do_add (int pos, const config &cfg) |
Private Attributes | |
std::function< void(ptr_vector &, const config &)> | factory_ |
const std::string | property_ |
ptr_vector & | values_ |
Definition at line 74 of file property_handler.hpp.
typedef std::shared_ptr<T> ai::vector_property_handler< T >::ptr |
Definition at line 76 of file property_handler.hpp.
typedef std::vector< std::shared_ptr<T> > ai::vector_property_handler< 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 142 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 147 of file property_handler.hpp.
References b, 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 101 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 90 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 116 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 82 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 132 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 162 of file property_handler.hpp.
Referenced by ai::vector_property_handler< T >::call_factory().
|
private |
Definition at line 163 of file property_handler.hpp.
Referenced by ai::vector_property_handler< T >::handle_add().
|
private |
Definition at line 164 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().