VGServer::AttributeProperties Class Reference
[Public Application Interface]

AttributeProperties specifies the name, type and possibly more properties of an attribute. More...

#include <AttributeProperties.h>

Inheritance diagram for VGServer::AttributeProperties:

VGServer::AnyType List of all members.

Public Member Functions

void appendBinaryFormat (class ByteOutBuffer &bob) const
 concatenate the binary representation of this attribute to the buffer
 AttributeProperties (const std::string &attrname, const AnyType &def, bool _varying=false)
 constructs an attribute with the given AnyType (type,value) tupel as default value.
 AttributeProperties (const std::string &attrname, attrtype_t attrtype, bool _varying=false)
 constructs an attribute with the given name and attribute type, but doesnt set a value.
 AttributeProperties ()
 empty default constructor, sets the type to INVALID
void resetType (attrtype_t t)
 overloaded resetType function from AnyType to reset the properties.

Public Attributes

unsigned int defbitnum
 this is the zero-based index of the default bit assigned to this attribute.
int lookup
std::string name
bool varying
 marks this attribute as having no default value.

Detailed Description

AttributeProperties specifies the name, type and possibly more properties of an attribute.

Both vertex and edge attributes are specified by the same class, as they are stored and selected using the same methods.

Definition at line 21 of file AttributeProperties.h.


Constructor & Destructor Documentation

VGServer::AttributeProperties::AttributeProperties (  )  [inline]

empty default constructor, sets the type to INVALID

Definition at line 42 of file AttributeProperties.h.

VGServer::AttributeProperties::AttributeProperties ( const std::string &  attrname,
attrtype_t  attrtype,
bool  _varying = false 
) [inline, explicit]

constructs an attribute with the given name and attribute type, but doesnt set a value.

you have to set a value using AnyType's set... functions.

Definition at line 49 of file AttributeProperties.h.

VGServer::AttributeProperties::AttributeProperties ( const std::string &  attrname,
const AnyType def,
bool  _varying = false 
) [inline, explicit]

constructs an attribute with the given AnyType (type,value) tupel as default value.

Definition at line 56 of file AttributeProperties.h.


Member Function Documentation

void VGServer::AttributeProperties::appendBinaryFormat ( class ByteOutBuffer bob  )  const

concatenate the binary representation of this attribute to the buffer

Definition at line 100 of file AttributeProperties.cc.

References VGServer::ATTRTYPE_BOOL, VGServer::AnyType::getInteger(), VGServer::AnyType::getType(), and name.

void VGServer::AttributeProperties::resetType ( attrtype_t  t  )  [inline]

overloaded resetType function from AnyType to reset the properties.

excluding the name!. this is needed for the parser

Reimplemented from VGServer::AnyType.

Definition at line 63 of file AttributeProperties.h.

References defbitnum, lookup, VGServer::AnyType::resetType(), and varying.


Member Data Documentation

unsigned int VGServer::AttributeProperties::defbitnum

this is the zero-based index of the default bit assigned to this attribute.

Definition at line 32 of file AttributeProperties.h.

Referenced by VGServer::TpAttributeBlob< AllocPolicy >::putAttrChainValue(), and resetType().

int VGServer::AttributeProperties::lookup

Definition at line 38 of file AttributeProperties.h.

Referenced by VGServer::TpAttributeBlob< AllocPolicy >::putAttrChainValue(), and resetType().

std::string VGServer::AttributeProperties::name

Definition at line 24 of file AttributeProperties.h.

Referenced by appendBinaryFormat().

bool VGServer::AttributeProperties::varying

marks this attribute as having no default value.

it does not have a bit in the default-bitfield.

Definition at line 28 of file AttributeProperties.h.

Referenced by VGServer::TpAttributeBlob< AllocPolicy >::putAttrChainValue(), and resetType().


The documentation for this class was generated from the following files:
Generated on Wed Sep 27 14:34:01 2006 for VGServer by  doxygen 1.4.7