client-cpp  0.0.1-SNAPSHOT
kaa::ICommonRecordBase< Container > Class Template Referenceabstract

#include <ICommonRecord.hpp>

+ Inheritance diagram for kaa::ICommonRecordBase< Container >:
+ Collaboration diagram for kaa::ICommonRecordBase< Container >:

Public Types

typedef Container container_type
 
typedef Container::mapped_type fields_type
 
typedef Container::key_type keys_type
 

Public Member Functions

 ICommonRecordBase ()
 
virtual ~ICommonRecordBase ()
 
virtual void setUuid (uuid_t uuid)=0
 
virtual uuid_t getUuid ()=0
 
virtual bool hasField (const keys_type &field_name) const =0
 
virtual fields_type getField (const keys_type &field_name) const =0
 
virtual void setField (const keys_type &field_name, fields_type value)=0
 
virtual void removeField (const keys_type &field_name)=0
 
virtual const container_typegetFields () const =0
 
- Public Member Functions inherited from kaa::ISchemaDependent
virtual const avro::NodePtr & getSchema () const =0
 
virtual ~ISchemaDependent ()
 
- Public Member Functions inherited from kaa::ICommonValue
 ICommonValue (CommonValueType type)
 
virtual ~ICommonValue ()
 
virtual const boost::any getValue () const =0
 
virtual avro::GenericDatum toAvro () const =0
 
virtual std::string toString () const =0
 
CommonValueType getCommonType ()
 

Additional Inherited Members

- Protected Attributes inherited from kaa::ICommonValue
CommonValueType type_
 

Detailed Description

template<class Container>
class kaa::ICommonRecordBase< Container >

Represents Avro record data structure.

Definition at line 34 of file ICommonRecord.hpp.

Member Typedef Documentation

template<class Container >
typedef Container kaa::ICommonRecordBase< Container >::container_type

Definition at line 36 of file ICommonRecord.hpp.

template<class Container >
typedef Container::mapped_type kaa::ICommonRecordBase< Container >::fields_type

Definition at line 37 of file ICommonRecord.hpp.

template<class Container >
typedef Container::key_type kaa::ICommonRecordBase< Container >::keys_type

Definition at line 38 of file ICommonRecord.hpp.

Constructor & Destructor Documentation

template<class Container >
kaa::ICommonRecordBase< Container >::ICommonRecordBase ( )
inline

Definition at line 40 of file ICommonRecord.hpp.

template<class Container >
virtual kaa::ICommonRecordBase< Container >::~ICommonRecordBase ( )
inlinevirtual

Definition at line 41 of file ICommonRecord.hpp.

Member Function Documentation

template<class Container >
virtual fields_type kaa::ICommonRecordBase< Container >::getField ( const keys_type field_name) const
pure virtual

Retrieves value of the field.

Parameters
field_nameName of the field which value being returned
Returns
Value of the field

Implemented in kaa::CommonRecord.

template<class Container >
virtual const container_type& kaa::ICommonRecordBase< Container >::getFields ( ) const
pure virtual

Retrieves container with set of field pairs (name/value).

Implemented in kaa::CommonRecord.

template<class Container >
virtual uuid_t kaa::ICommonRecordBase< Container >::getUuid ( )
pure virtual

Retrieves uuid object to the record

Implemented in kaa::CommonRecord.

template<class Container >
virtual bool kaa::ICommonRecordBase< Container >::hasField ( const keys_type field_name) const
pure virtual

Check if the field is present in the record

Parameters
field_nameName of the field to be checked
Returns
True if it is present, false otherwise

Implemented in kaa::CommonRecord.

template<class Container >
virtual void kaa::ICommonRecordBase< Container >::removeField ( const keys_type field_name)
pure virtual

Remove field from the record.

Parameters
field_nameName of the field which value is being removed

Implemented in kaa::CommonRecord.

template<class Container >
virtual void kaa::ICommonRecordBase< Container >::setField ( const keys_type field_name,
fields_type  value 
)
pure virtual

Set new value to the field.

Parameters
field_nameName of the field which value is being changed

Implemented in kaa::CommonRecord.

template<class Container >
virtual void kaa::ICommonRecordBase< Container >::setUuid ( uuid_t  uuid)
pure virtual

Set uuid object to the record

Implemented in kaa::CommonRecord.


The documentation for this class was generated from the following file: