0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Public Attributes | List of all members
Hypertable::SystemVariable::Spec Struct Reference

Holds a variable code and boolean value. More...

#include <SystemVariable.h>

Inheritance diagram for Hypertable::SystemVariable::Spec:
Inheritance graph
[legend]
Collaboration diagram for Hypertable::SystemVariable::Spec:
Collaboration graph
[legend]

Public Member Functions

uint8_t encoding_version () const override
 Returns encoding version. More...
 
size_t encoded_length_internal () const override
 Returns internal serialized length. More...
 
void encode_internal (uint8_t **bufp) const override
 Writes serialized representation of object to a buffer. More...
 
void decode_internal (uint8_t version, const uint8_t **bufp, size_t *remainp) override
 Reads serialized representation of object from a buffer. More...
 
- Public Member Functions inherited from Hypertable::Serializable
virtual size_t encoded_length () const
 Returns serialized object length. More...
 
virtual void encode (uint8_t **bufp) const
 Writes serialized representation of object to a buffer. More...
 
virtual void decode (const uint8_t **bufp, size_t *remainp)
 Reads serialized representation of object from a buffer. More...
 

Public Attributes

int32_t code
 Variable code. More...
 
bool value
 Variable value. More...
 

Additional Inherited Members

Detailed Description

Holds a variable code and boolean value.

Definition at line 51 of file SystemVariable.h.

Member Function Documentation

void SystemVariable::Spec::decode_internal ( uint8_t  version,
const uint8_t **  bufp,
size_t *  remainp 
)
overridevirtual

Reads serialized representation of object from a buffer.

Parameters
versionEncoding version
bufpAddress of destination buffer pointer (advanced by call)
remainpAddress of integer holding amount of serialized object remaining
See also
encode_internal() for encoding format

Implements Hypertable::Serializable.

Definition at line 155 of file SystemVariable.cc.

void SystemVariable::Spec::encode_internal ( uint8_t **  bufp) const
overridevirtual

Writes serialized representation of object to a buffer.

Parameters
bufpAddress of destination buffer pointer (advanced by call)

Encoding is as follows:

Encoding Description
i32 Variable code
bool Variable value

Implements Hypertable::Serializable.

Definition at line 150 of file SystemVariable.cc.

size_t SystemVariable::Spec::encoded_length_internal ( ) const
overridevirtual

Returns internal serialized length.

Returns
Internal serialized length
See also
encode_internal() for encoding format

Implements Hypertable::Serializable.

Definition at line 130 of file SystemVariable.cc.

uint8_t SystemVariable::Spec::encoding_version ( ) const
overridevirtual

Returns encoding version.

Returns
Encoding version

Implements Hypertable::Serializable.

Definition at line 126 of file SystemVariable.cc.

Member Data Documentation

int32_t Hypertable::SystemVariable::Spec::code

Variable code.

Definition at line 54 of file SystemVariable.h.

bool Hypertable::SystemVariable::Spec::value

Variable value.

Definition at line 57 of file SystemVariable.h.


The documentation for this struct was generated from the following files: