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

Request parameters for create namespace operation. More...

#include <CreateNamespace.h>

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

Public Member Functions

 CreateNamespace ()
 Constructor. More...
 
 CreateNamespace (const std::string &name, int32_t flags)
 Constructor. More...
 
const string & name () const
 Gets name of namespace to create. More...
 
int32_t flags ()
 Gets create flags. 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_name
 Name of namespace to create. More...
 
int32_t m_flags {}
 Create flags (see NamespaceFlag) More...
 

Additional Inherited Members

Detailed Description

Request parameters for create namespace operation.

Definition at line 46 of file CreateNamespace.h.

Constructor & Destructor Documentation

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

Constructor.

Empty initialization for decoding.

Definition at line 51 of file CreateNamespace.h.

CreateNamespace::CreateNamespace ( const std::string &  name,
int32_t  flags 
)

Constructor.

Initializes with parameters for encoding. Sets m_name to name and m_flags to flags.

Parameters
nameName of namespace to create
flagsCreate flags (see NamespaceFlag)

Definition at line 39 of file CreateNamespace.cc.

Member Function Documentation

void CreateNamespace::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 74 of file CreateNamespace.cc.

void CreateNamespace::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
vstr Pathname of namespace to create
i32 Create flags (see NamespaceFlag)

Implements Hypertable::Serializable.

Definition at line 69 of file CreateNamespace.cc.

size_t CreateNamespace::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 49 of file CreateNamespace.cc.

uint8_t CreateNamespace::encoding_version ( ) const
overrideprivatevirtual

Returns encoding version.

Returns
Encoding version

Implements Hypertable::Serializable.

Definition at line 45 of file CreateNamespace.cc.

int32_t Hypertable::Lib::Master::Request::Parameters::CreateNamespace::flags ( )
inline

Gets create flags.

Returns
Create flags

Definition at line 66 of file CreateNamespace.h.

const string& Hypertable::Lib::Master::Request::Parameters::CreateNamespace::name ( ) const
inline

Gets name of namespace to create.

Returns
Name of namespace to create

Definition at line 62 of file CreateNamespace.h.

Member Data Documentation

int32_t Hypertable::Lib::Master::Request::Parameters::CreateNamespace::m_flags {}
private

Create flags (see NamespaceFlag)

Definition at line 96 of file CreateNamespace.h.

std::string Hypertable::Lib::Master::Request::Parameters::CreateNamespace::m_name
private

Name of namespace to create.

Definition at line 93 of file CreateNamespace.h.


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