desaxe::SetAttributeWithConversion_body< Obj_Type, Data_Type > Class Template Reference
#include <simple_actions.h>


Public Types | |
| typedef void(Obj_Type::* | FunType )(Data_Type) |
| typedef Data_Type(* | ConvType )(const Xml_string &) |
Public Member Functions | |
| SetAttributeWithConversion_body (FunType set, const Xml_string &name, ConvType conv) | |
| SetAttributeWithConversion_body (FunType set, const Xml_string &name, ConvType conv, Data_Type deflt) | |
| void | begin (const Xml_string &, Xml_attr attr) |
Private Attributes | |
| FunType | set_ |
| Xml_string | name_ |
| ConvType | conv_ |
| Data_Type | default_ |
| bool | hasDefault_ |
Detailed Description
template<class Obj_Type, class Data_Type>
class desaxe::SetAttributeWithConversion_body< Obj_Type, Data_Type >
Stores named attribute to the topmost object on the stack if attribute present, or stores default if present.
Definition at line 447 of file simple_actions.h.
Member Typedef Documentation
| typedef void(Obj_Type::* desaxe::SetAttributeWithConversion_body< Obj_Type, Data_Type >::FunType)(Data_Type) |
| typedef Data_Type(* desaxe::SetAttributeWithConversion_body< Obj_Type, Data_Type >::ConvType)(const Xml_string &) |
Constructor & Destructor Documentation
| desaxe::SetAttributeWithConversion_body< Obj_Type, Data_Type >::SetAttributeWithConversion_body | ( | FunType | set, | |
| const Xml_string & | name, | |||
| ConvType | conv | |||
| ) | [inline] |
Definition at line 453 of file simple_actions.h.
| desaxe::SetAttributeWithConversion_body< Obj_Type, Data_Type >::SetAttributeWithConversion_body | ( | FunType | set, | |
| const Xml_string & | name, | |||
| ConvType | conv, | |||
| Data_Type | deflt | |||
| ) | [inline] |
Definition at line 457 of file simple_actions.h.
Member Function Documentation
| void desaxe::SetAttributeWithConversion_body< Obj_Type, Data_Type >::begin | ( | const Xml_string & | , | |
| Xml_attr | attr | |||
| ) | [inline, virtual] |
Reimplemented from desaxe::Action_body.
Definition at line 461 of file simple_actions.h.
References desaxe::SetAttributeWithConversion_body< Obj_Type, Data_Type >::conv_, desaxe::SetAttributeWithConversion_body< Obj_Type, Data_Type >::default_, desaxe::Action_body::dig, desaxe::SetAttributeWithConversion_body< Obj_Type, Data_Type >::hasDefault_, desaxe::SetAttributeWithConversion_body< Obj_Type, Data_Type >::name_, desaxe::SetAttributeWithConversion_body< Obj_Type, Data_Type >::set_, and Xml_data().
Member Data Documentation
FunType desaxe::SetAttributeWithConversion_body< Obj_Type, Data_Type >::set_ [private] |
Definition at line 471 of file simple_actions.h.
Referenced by desaxe::SetAttributeWithConversion_body< Obj_Type, Data_Type >::begin().
Xml_string desaxe::SetAttributeWithConversion_body< Obj_Type, Data_Type >::name_ [private] |
Definition at line 472 of file simple_actions.h.
Referenced by desaxe::SetAttributeWithConversion_body< Obj_Type, Data_Type >::begin().
ConvType desaxe::SetAttributeWithConversion_body< Obj_Type, Data_Type >::conv_ [private] |
Definition at line 473 of file simple_actions.h.
Referenced by desaxe::SetAttributeWithConversion_body< Obj_Type, Data_Type >::begin().
Data_Type desaxe::SetAttributeWithConversion_body< Obj_Type, Data_Type >::default_ [private] |
Definition at line 474 of file simple_actions.h.
Referenced by desaxe::SetAttributeWithConversion_body< Obj_Type, Data_Type >::begin().
bool desaxe::SetAttributeWithConversion_body< Obj_Type, Data_Type >::hasDefault_ [private] |
Definition at line 475 of file simple_actions.h.
Referenced by desaxe::SetAttributeWithConversion_body< Obj_Type, Data_Type >::begin().
The documentation for this class was generated from the following file:
