|
ActiveLib
|
#include <Entry.h>
Classes | |
| class | ID |
Public Types | |
| enum class | Type { attribute , element } |
Public Member Functions | |
| Entry (const Identity &ident, int16_t ind, Type type, bool mustHave=true, const std::type_info *owner=nullptr) | |
| Entry (Identity &&ident, int16_t ind, Type type, bool mustHave=true, const std::type_info *owner=nullptr) | |
| Entry (const Identity &ident, int16_t ind, size_t howMany, std::optional< size_t > max=1, bool mustHave=true, const std::type_info *owner=nullptr) | |
| Entry (Identity &&ident, int16_t ind, size_t howMany, std::optional< size_t > max=1, bool mustHave=true, const std::type_info *owner=nullptr) | |
| Entry (const Entry &source)=default | |
| Entry & | operator= (const Entry &source)=default |
| const Identity & | identity () const |
| Get the wrapped identity. | |
| bool | isAttribute () const |
| bool | isRepeating () const |
| std::optional< size_t > | maximum () const |
| void | setIdentity (const Identity &ident) |
| void | setIdentity (Identity &&ident) |
| Entry & | withOwner (const std::type_info *owner) |
| bool | bumpAvailable () |
An entry in the inventory of a serialisable package
|
inline |
Constructor (Single-instance items)
| ident | The entry identity |
| ind | An index for the entry |
| type | Value type, i.e. attribute/element |
| mustHave | True if required for export |
| owner | The owner type |
|
inline |
Constructor (Single-instance items)
| ident | The entry identity |
| ind | An index for the entry |
| howMany | How many items are currently available |
| mustHave | True if required for export |
| owner | The owner type |
|
inline |
Bump the entry availability (where allowed) return: True if the availability was bumped (false indicates no additional items are allowed)

|
inline |
Determine if the entry items can repeat, e.g. are stored in an array
|
inline |
The maximum number of instances against this entry (nullopt = unlimited)

|
inline |
Set the entry identity return: True if the availability was bumped (false indicates no additional items are allowed)
|
inline |
Set the entry identity return: True if the availability was bumped (false indicates no additional items are allowed)
|
inline |