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::Length Class Reference

Request parameters for length requests. More...

#include <Length.h>

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

Public Member Functions

 Length ()
 Constructor. More...
 
 Length (const std::string &fname, bool accurate)
 Constructor. More...
 
const char * get_fname ()
 Gets file name. More...
 
bool get_accurate ()
 Gets accureate flag. 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::string m_fname
 File name. More...
 
bool m_accurate
 Accurate flag. More...
 

Additional Inherited Members

Detailed Description

Request parameters for length requests.

Definition at line 46 of file Length.h.

Constructor & Destructor Documentation

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

Constructor.

Empty initialization for decoding.

Definition at line 51 of file Length.h.

Hypertable::FsBroker::Lib::Request::Parameters::Length::Length ( const std::string &  fname,
bool  accurate 
)
inline

Constructor.

Initializes with parameters for encoding. Sets m_fname to fname and m_accurate to accurate

Parameters
fnameFile name
accurateFlag indicating that accurate length is desired

Definition at line 58 of file Length.h.

Member Function Documentation

void Length::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 50 of file Length.cc.

void Length::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 Length.cc.

size_t Length::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 Length.cc.

uint8_t Length::encoding_version ( ) const
overrideprivatevirtual

Returns encoding version.

Returns
Encoding version

Implements Hypertable::Serializable.

Definition at line 37 of file Length.cc.

bool Hypertable::FsBroker::Lib::Request::Parameters::Length::get_accurate ( )
inline

Gets accureate flag.

Returns
Accurate flag

Definition at line 67 of file Length.h.

const char* Hypertable::FsBroker::Lib::Request::Parameters::Length::get_fname ( )
inline

Gets file name.

Returns
File name

Definition at line 63 of file Length.h.

Member Data Documentation

bool Hypertable::FsBroker::Lib::Request::Parameters::Length::m_accurate
private

Accurate flag.

Definition at line 84 of file Length.h.

std::string Hypertable::FsBroker::Lib::Request::Parameters::Length::m_fname
private

File name.

Definition at line 81 of file Length.h.


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