MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SimpleProperties Class Reference

Key-value-pair container. Actully a list of named elements. More...

#include <SimpleProperties.hpp>

Classes

class  Reader
struct  SP2StructMapping
class  Writer

Public Types

enum  ValueType { Uint32Value = 0, StringValue = 1, BinaryValue = 2, InvalidValue = 3 }
enum  UnpackStatus {
  Eof = 0, Break = 1, TypeMismatch = 2, ValueTooLow = 3,
  ValueTooHigh = 4, UnknownKey = 5, OutOfMemory = 6
}

Static Public Member Functions

static UnpackStatus unpack (class Reader &it, void *dst, const SP2StructMapping[], Uint32 mapSz, bool ignoreMinMax, bool ignoreUnknownKeys)
static UnpackStatus pack (class Writer &, const void *src, const SP2StructMapping[], Uint32 mapSz, bool ignoreMinMax)

Detailed Description

Key-value-pair container. Actully a list of named elements.

SimpleProperties:

  • The keys are Uint16
  • The values are either Uint32 or null terminated c-strings
Note
Keys may be repeated.

Examples of things that can be stored in a SimpleProperties object:

  • Lists like: ((1, "foo"), (2, "bar"), (3, 32), (2, "baz"))

Definition at line 38 of file SimpleProperties.hpp.

Member Enumeration Documentation

UnpackStatus - Value returned from unpack

Definition at line 66 of file SimpleProperties.hpp.

Value types

Definition at line 43 of file SimpleProperties.hpp.


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