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::FsBroker::Lib::Request::Parameters::Debug Class Reference

Request parameters for debug requests. More...

#include <Debug.h>

Inheritance diagram for Hypertable::FsBroker::Lib::Request::Parameters::Debug:
Inheritance graph
[legend]
Collaboration diagram for Hypertable::FsBroker::Lib::Request::Parameters::Debug:
Collaboration graph
[legend]

Public Member Functions

 Debug ()
 Constructor. More...
 
 Debug (int32_t command)
 Constructor. More...
 
int32_t get_command ()
 Gets command code. 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

int32_t m_command {}
 Command code. More...
 

Additional Inherited Members

Detailed Description

Request parameters for debug requests.

Definition at line 46 of file Debug.h.

Constructor & Destructor Documentation

Hypertable::FsBroker::Lib::Request::Parameters::Debug::Debug ( )
inline

Constructor.

Empty initialization for decoding.

Definition at line 51 of file Debug.h.

Hypertable::FsBroker::Lib::Request::Parameters::Debug::Debug ( int32_t  command)
inline

Constructor.

Initializes with parameters for encoding. Sets m_command to command.

Parameters
commandDebug command code

Definition at line 57 of file Debug.h.

Member Function Documentation

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

Reads serialized representation of object from a buffer.

This function is to be overridden by derived classes and should decode the object per-se as encoded with encode_internal().

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

Implements Hypertable::Serializable.

Definition at line 49 of file Debug.cc.

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

Writes serialized representation of object to a buffer.

This function is to be overridden by derived classes and should encode the object per-se.

Parameters
bufpAddress of destination buffer pointer (advanced by call)

Implements Hypertable::Serializable.

Definition at line 45 of file Debug.cc.

size_t Debug::encoded_length_internal ( ) const
overrideprivatevirtual

Returns internal serialized length.

This function is to be overridden by derived classes and should return the length of the the serialized object per-se.

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

Implements Hypertable::Serializable.

Definition at line 41 of file Debug.cc.

uint8_t Debug::encoding_version ( ) const
overrideprivatevirtual

Returns encoding version.

Returns
Encoding version

Implements Hypertable::Serializable.

Definition at line 37 of file Debug.cc.

int32_t Hypertable::FsBroker::Lib::Request::Parameters::Debug::get_command ( )
inline

Gets command code.

Returns
Command code

Definition at line 61 of file Debug.h.

Member Data Documentation

int32_t Hypertable::FsBroker::Lib::Request::Parameters::Debug::m_command {}
private

Command code.

Definition at line 75 of file Debug.h.


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