0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Hypertable::Lib::Master::Request::Parameters::SetState Class Reference

Request parameters for set state operation. More...

#include <SetState.h>

Inheritance diagram for Hypertable::Lib::Master::Request::Parameters::SetState:
Inheritance graph
[legend]
Collaboration diagram for Hypertable::Lib::Master::Request::Parameters::SetState:
Collaboration graph
[legend]

Public Member Functions

 SetState ()
 Constructor. More...
 
 SetState (const std::vector< SystemVariable::Spec > &specs)
 Constructor. More...
 
const std::vector
< SystemVariable::Spec > & 
specs ()
 Gets system variable specifications. 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...
 

Private 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...
 

Private Attributes

std::vector< SystemVariable::Specm_specs
 System variable specifications More...
 

Additional Inherited Members

Detailed Description

Request parameters for set state operation.

Definition at line 49 of file SetState.h.

Constructor & Destructor Documentation

Hypertable::Lib::Master::Request::Parameters::SetState::SetState ( )
inline

Constructor.

Empty initialization for decoding.

Definition at line 54 of file SetState.h.

Hypertable::Lib::Master::Request::Parameters::SetState::SetState ( const std::vector< SystemVariable::Spec > &  specs)
inline

Constructor.

Initializes with parameters for encoding. Sets m_specs to specs.

Parameters
specsSystem variable specifications

Definition at line 60 of file SetState.h.

Member Function Documentation

void SetState::decode_internal ( uint8_t  version,
const uint8_t **  bufp,
size_t *  remainp 
)
overrideprivatevirtual

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 75 of file SetState.cc.

void SetState::encode_internal ( uint8_t **  bufp) const
overrideprivatevirtual

Writes serialized representation of object to a buffer.

Parameters
bufpAddress of destination buffer pointer (advanced by call)

Encoding is as follows:

Encoding Description
i32 System variable spec count
For each system variable spec ...
SystemVariable::Spec System variable specification

Implements Hypertable::Serializable.

Definition at line 69 of file SetState.cc.

size_t SetState::encoded_length_internal ( ) const
overrideprivatevirtual

Returns internal serialized length.

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

Implements Hypertable::Serializable.

Definition at line 43 of file SetState.cc.

uint8_t SetState::encoding_version ( ) const
overrideprivatevirtual

Returns encoding version.

Returns
Encoding version

Implements Hypertable::Serializable.

Definition at line 39 of file SetState.cc.

const std::vector<SystemVariable::Spec>& Hypertable::Lib::Master::Request::Parameters::SetState::specs ( )
inline

Gets system variable specifications.

Returns
System variable specifications

Definition at line 64 of file SetState.h.

Member Data Documentation

std::vector<SystemVariable::Spec> Hypertable::Lib::Master::Request::Parameters::SetState::m_specs
private

System variable specifications

Definition at line 91 of file SetState.h.


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