#include <secstwo_internal.hpp>
Public Member Functions | |
var_list_item_t (const char *name) | |
virtual bool | variable () const |
virtual pdata_item_t | clone () const |
Creates a copy of the message. Calls data item copy constructor and puts newly returned data item into a shared ptr. Contrary to cloning shared ptrs with ref count on a message is incremented, cloned message is a separate one and it's data can be edited with no impact to the nacestor data item. | |
data_item_t & | operator+= (const pdata_item_t &pit) |
virtual bool | match (const data_item_t &other, match_t kind=ALL) const |
Function to match a given data item to another data item. | |
virtual void | clear_data () |
Clears all data in a data item. | |
virtual int | copy_data (const data_item_t &o) |
Copies all data from the given item. Data copy is made if data items have same type. For list item copy data is made reqursively and does not stop upon unsuccesful data copy. | |
virtual data_item_t & | operator[] (uint32_t ix) |
Array access operator by index There are two main cases for this operator: 1. Access to the element of a list data item 2. Access to the elements in a numeric item body If the index goes beyond the item size, the ref to the item itself is returned. One is strongly encouraged to use. | |
Friends | |
class | binary_deserializer_t |
class | xml_deserializer_t |
class | binary_serializer_t |
class | xml_serializer_t |
Definition at line 738 of file secstwo_internal.hpp.
virtual bool freesecs::secstwo::var_list_item_t::match | ( | const data_item_t & | it, | |
match_t | match = ALL | |||
) | const [inline, virtual] |
Function to match a given data item to another data item.
it | Item to match. | |
match | Token of kind of match. |
Reimplemented from freesecs::secstwo::list_item_t.
Definition at line 771 of file secstwo_internal.hpp.
References _template, and freesecs::secstwo::list_item_t::match().
virtual int freesecs::secstwo::var_list_item_t::copy_data | ( | const data_item_t & | ) | [inline, virtual] |
Copies all data from the given item. Data copy is made if data items have same type. For list item copy data is made reqursively and does not stop upon unsuccesful data copy.
0 | Data copy successful | |
< | 0 Data copy performed with errors |
Reimplemented from freesecs::secstwo::list_item_t.
Definition at line 793 of file secstwo_internal.hpp.
References freesecs::secstwo::list_item_t::_data, _template, freesecs::secstwo::data_item_t::type(), and freesecs::secstwo::list_item_t::variable().
virtual data_item_t& freesecs::secstwo::var_list_item_t::operator[] | ( | uint32_t | ix | ) | [inline, virtual] |
Array access operator by index There are two main cases for this operator: 1. Access to the element of a list data item 2. Access to the elements in a numeric item body If the index goes beyond the item size, the ref to the item itself is returned. One is strongly encouraged to use.
ix | access index |
Reimplemented from freesecs::secstwo::list_item_t.
Definition at line 816 of file secstwo_internal.hpp.
References freesecs::secstwo::list_item_t::operator[]().