|
| StructDescription () |
| Constructor. More...
|
|
template<typename Element > |
StructDescription & | operator() (const char *tag, Element Structure::*eptr) |
| Operator to build the structure description element by element. More...
|
|
StructDescription & | mandatory () |
| Define the last structure element defined to be mandatory always (independent of validation mode) More...
|
|
StructDescription & | optional () |
| Define the last structure element defined to be optional always (independent of validation mode) More...
|
|
StructDescription & | operator-- (int) |
| Define the elements defined until now to be attributes and the subsequent elements defined to be content elements (e.g. for XML validation). By default all elements are content elements. More...
|
|
Parse | parse () const |
| Non intrusive parser call function of this sructure. More...
|
|
Fetch | fetch () const |
| Non intrusive serializer call (fetch the next element) function of this sructure. More...
|
|
| StructDescriptionBase (Constructor c, Destructor d, const char *tn, std::size_t os, std::size_t sz, ElementType t, Parse pa, Fetch pr, ElementRequirement req_) |
| Constructor. More...
|
|
| StructDescriptionBase (const char *tn, std::size_t os, std::size_t sz, ElementType t, Parse pa, Fetch pr, ElementRequirement req_) |
| Constructor. More...
|
|
| StructDescriptionBase (const StructDescriptionBase &o) |
| Copy constructor. More...
|
|
| StructDescriptionBase () |
| Default constructor. More...
|
|
bool | parse (void *obj, langbind::TypedInputFilter &in, Context &ctx, ParseStateStack &stk) const |
| Call of parser of the serialization passed to fill an object and validate the serialization sequence. More...
|
|
bool | setAtomicValue (void *obj, std::size_t idx, const std::string &value) const |
| Initializes an atomic element in a structure. More...
|
|
bool | init (void *obj) const |
| Initialize the structure referenced with 'obj'. More...
|
|
void | done (void *obj) const |
| Destroy the structure referenced with 'obj'. More...
|
|
std::size_t | size () const |
| Get the allocation size of this structure in bytes. More...
|
|
std::size_t | ofs () const |
| Get the offset of this structure inside the holding parent structure. More...
|
|
ElementType | type () const |
| Get the element kind (type of access) of this structure or atomic element. More...
|
|
Map::const_iterator | find (const std::string &name) const |
| Find an element in this structure by name. More...
|
|
Map::const_iterator | find_cis (const std::string &name) const |
| Case insensitive find an element in this structure by name. More...
|
|
std::string | names (const char *sep) const |
| Return the element names of this structure as string for error messages. More...
|
|
Map::const_iterator | begin () const |
| Get the start iterator on the elements of this structure. More...
|
|
Map::const_iterator | end () const |
| Get the end iterator on the elements of this structure. More...
|
|
void | define (const std::string &name, const StructDescriptionBase &dd) |
| Define an element of this structure. More...
|
|
std::size_t | nof_attributes () const |
| Get the number of attributes of a struct. More...
|
|
void | defineEndOfAttributes () |
| Define the number of attributes of a struct. More...
|
|
std::size_t | nof_elements () const |
| Get the number of elements in the structure or array. More...
|
|
const char * | typeName () const |
| Get the type name of this structure. More...
|
|
bool | mandatory () const |
| Find out if the element in the structure is mandatory. More...
|
|
bool | optional () const |
| Find out if the element in the structure is optional. More...
|
|
void | requirement (ElementRequirement requirement_) |
| Set element occurrence requirement. More...
|
|
template<class Structure>
class _Wolframe::serialize::StructDescription< Structure >
Intrusive description of a filter/form map.
- Template Parameters
-
Structure | structure that is represented by this description |