client-cpp  0.0.1-SNAPSHOT
kaa::CommonRecord Class Reference

#include <CommonRecord.hpp>

+ Inheritance diagram for kaa::CommonRecord:
+ Collaboration diagram for kaa::CommonRecord:

Public Member Functions

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

Additional Inherited Members

- Public Types inherited from kaa::ICommonRecordBase< Container >
typedef Container container_type
 
typedef Container::mapped_type fields_type
 
typedef Container::key_type keys_type
 
- Protected Attributes inherited from kaa::ICommonValue
CommonValueType type_
 

Detailed Description

Definition at line 28 of file CommonRecord.hpp.

Constructor & Destructor Documentation

kaa::CommonRecord::CommonRecord ( uuid_t  uuid,
const avro::NodePtr &  schema 
)

Member Function Documentation

fields_type kaa::CommonRecord::getField ( const keys_type field_name) const
virtual

Retrieves value of the field.

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

Implements kaa::ICommonRecordBase< Container >.

const container_type& kaa::CommonRecord::getFields ( ) const
inlinevirtual

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

Implements kaa::ICommonRecordBase< Container >.

Definition at line 45 of file CommonRecord.hpp.

const avro::NodePtr& kaa::CommonRecord::getSchema ( ) const
virtual
Returns
schema object
See also
NodePtr

Implements kaa::ISchemaDependent.

uuid_t kaa::CommonRecord::getUuid ( )
virtual

Retrieves uuid object to the record

Implements kaa::ICommonRecordBase< Container >.

const boost::any kaa::CommonRecord::getValue ( ) const
inlinevirtual

Retrieves nested object

Implements kaa::ICommonValue.

Definition at line 32 of file CommonRecord.hpp.

bool kaa::CommonRecord::hasField ( const keys_type field_name) const
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

Implements kaa::ICommonRecordBase< Container >.

void kaa::CommonRecord::removeField ( const keys_type field_name)
virtual

Remove field from the record.

Parameters
field_nameName of the field which value is being removed

Implements kaa::ICommonRecordBase< Container >.

void kaa::CommonRecord::setField ( const keys_type field_name,
fields_type  value 
)
virtual

Set new value to the field.

Parameters
field_nameName of the field which value is being changed

Implements kaa::ICommonRecordBase< Container >.

void kaa::CommonRecord::setUuid ( uuid_t  uuid)
virtual

Set uuid object to the record

Implements kaa::ICommonRecordBase< Container >.

avro::GenericDatum kaa::CommonRecord::toAvro ( ) const
virtual

Retrieves Avro representation of the nested object

Implements kaa::ICommonValue.

std::string kaa::CommonRecord::toString ( ) const
virtual

Retrieves string representation of the nested object

Implements kaa::ICommonValue.


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