Properties.hpp File Reference

#include <ndb_global.h>
#include <BaseString.hpp>
#include <UtilBuffer.hpp>

Go to the source code of this file.

Data Structures

class  Properties
 Stores information in (name, value)-pairs. More...
class  Properties::Iterator
struct  Property
 Stores one (name, value)-pair. More...

Enumerations

enum  PropertiesType { PropertiesType_Uint32 = 0, PropertiesType_char = 1, PropertiesType_Properties = 2, PropertiesType_Uint64 = 3 }

Variables

const Uint32 E_PROPERTIES_BUFFER_TO_SMALL_WHILE_UNPACKING
const Uint32 E_PROPERTIES_ELEMENT_ALREADY_EXISTS
const Uint32 E_PROPERTIES_ERROR_MALLOC_WHILE_PACKING
const Uint32 E_PROPERTIES_ERROR_MALLOC_WHILE_UNPACKING
const Uint32 E_PROPERTIES_INVALID_BUFFER_TO_SHORT
const Uint32 E_PROPERTIES_INVALID_CHECKSUM
const Uint32 E_PROPERTIES_INVALID_NAME
const Uint32 E_PROPERTIES_INVALID_TYPE
const Uint32 E_PROPERTIES_INVALID_VERSION_WHILE_UNPACKING
const Uint32 E_PROPERTIES_NO_SUCH_ELEMENT
const Uint32 E_PROPERTIES_OK


Enumeration Type Documentation

enum PropertiesType
 

Enumerator:
PropertiesType_Uint32 
PropertiesType_char 
PropertiesType_Properties 
PropertiesType_Uint64 

Definition at line 24 of file Properties.hpp.

00024                     {
00025   PropertiesType_Uint32 = 0,
00026   PropertiesType_char = 1,
00027   PropertiesType_Properties = 2,
00028   PropertiesType_Uint64 = 3
00029 };


Variable Documentation

const Uint32 E_PROPERTIES_BUFFER_TO_SMALL_WHILE_UNPACKING
 

Error when unpacking No of items > 0 while size of buffer (left) <= 0

Definition at line 968 of file Properties.cpp.

Referenced by PropertiesImpl::unpack().

const Uint32 E_PROPERTIES_ELEMENT_ALREADY_EXISTS
 

Element already existed when using put, and replace was not specified

Definition at line 961 of file Properties.cpp.

Referenced by ParserImpl::parseArg(), and put().

const Uint32 E_PROPERTIES_ERROR_MALLOC_WHILE_PACKING
 

Error when packing, can not allocate working buffer

Note: OS error is set

Definition at line 963 of file Properties.cpp.

Referenced by PropertiesImpl::pack().

const Uint32 E_PROPERTIES_ERROR_MALLOC_WHILE_UNPACKING
 

Error when unpacking, can not allocate working buffer

Note: OS error is set

Definition at line 966 of file Properties.cpp.

Referenced by PropertiesImpl::unpack().

const Uint32 E_PROPERTIES_INVALID_BUFFER_TO_SHORT
 

When unpacking an buffer found that buffer is to short

Probably an invlaid buffer

Definition at line 965 of file Properties.cpp.

Referenced by Properties::unpack().

const Uint32 E_PROPERTIES_INVALID_CHECKSUM
 

Error when unpacking, invalid checksum

Definition at line 967 of file Properties.cpp.

Referenced by Properties::unpack().

const Uint32 E_PROPERTIES_INVALID_NAME
 

Invalid name in put, names can not contain Properties::delimiter

Definition at line 958 of file Properties.cpp.

Referenced by put().

const Uint32 E_PROPERTIES_INVALID_TYPE
 

Element had wrong type when using get

Definition at line 960 of file Properties.cpp.

Referenced by Properties::get(), and Properties::getCopy().

const Uint32 E_PROPERTIES_INVALID_VERSION_WHILE_UNPACKING
 

Invalid version on properties file you are trying to read

Definition at line 964 of file Properties.cpp.

Referenced by Properties::unpack().

const Uint32 E_PROPERTIES_NO_SUCH_ELEMENT
 

Element did not exist when using get

Definition at line 959 of file Properties.cpp.

Referenced by Properties::get(), Properties::getCopy(), Properties::getTypeOf(), and put().

const Uint32 E_PROPERTIES_OK
 

No error

Definition at line 957 of file Properties.cpp.

Referenced by Properties::get(), Properties::getCopy(), and Properties::getTypeOf().


Generated on Wed Jul 20 21:09:35 2005 for MySQL 5.0.9 Beta by  doxygen 1.4.3