Request parameters for length requests.
More...
#include <Length.h>
Request parameters for length requests.
Definition at line 46 of file Length.h.
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
-
fname | File name |
accurate | Flag indicating that accurate length is desired |
Definition at line 58 of file Length.h.
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
-
version | Encoding version |
bufp | Address of destination buffer pointer (advanced by call) |
remainp | Address 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
-
bufp | Address 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 |
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.
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:
- /home/doug/src/hypertable/src/cc/FsBroker/Lib/Request/Parameters/Length.h
- /home/doug/src/hypertable/src/cc/FsBroker/Lib/Request/Parameters/Length.cc