Atlas 0.7.0
Networking protocol for the Worldforge system.
Atlas::Objects Namespace Reference

Classes

class  Allocator
 
class  BaseObjectData
 
class  Factories
 
struct  Factory
 
class  NoSuchAttrException
 
class  ObjectsDecoder
 
class  ObjectsEncoder
 
class  RootData
 All objects inherit from this.. More...
 
class  SmartPtr
 

Typedefs

typedef SmartPtr< RootDataRoot
 
typedef Root(* FactoryMethod) (const std::string &, int)
 
typedef Root(* DefaultInstanceMethod) (const std::string &, int)
 
typedef std::map< const std::string, FactoryFactoryMap
 

Functions

SmartPtr< RootDatageneric_factory (const std::string &name, int no)
 
SmartPtr< RootDataanonymous_factory (const std::string &name, int no)
 
template<typename returnPtrType , class fromType >
returnPtrType smart_dynamic_cast (const SmartPtr< fromType > &o)
 
template<typename returnPtrType , class fromType >
returnPtrType smart_static_cast (const SmartPtr< fromType > &o)
 

Variables

const std::string ID_ATTR = "id"
 
const std::string PARENT_ATTR = "parent"
 
const std::string STAMP_ATTR = "stamp"
 
const std::string OBJTYPE_ATTR = "objtype"
 
const std::string NAME_ATTR = "name"
 
const uint32_t ID_FLAG = 1u << 1u
 
const uint32_t PARENT_FLAG = 1u << 2u
 
const uint32_t STAMP_FLAG = 1u << 3u
 
const uint32_t OBJTYPE_FLAG = 1u << 4u
 
const uint32_t NAME_FLAG = 1u << 5u
 

Detailed Description

The Atlas high level Objects namespace.

This namespace contains classes used to handle high level Atlas data.

Typedef Documentation

◆ DefaultInstanceMethod

typedef Root(* Atlas::Objects::DefaultInstanceMethod) (const std::string &, int)

Definition at line 52 of file Factories.h.

◆ FactoryMap

typedef std::map<const std::string, Factory> Atlas::Objects::FactoryMap

Definition at line 74 of file Factories.h.

◆ FactoryMethod

typedef Root(* Atlas::Objects::FactoryMethod) (const std::string &, int)

Definition at line 50 of file Factories.h.

◆ Root

Definition at line 21 of file Decoder.h.

Function Documentation

◆ anonymous_factory()

SmartPtr< RootData > Atlas::Objects::anonymous_factory ( const std::string &  name,
int  no 
)

Definition at line 39 of file Factories.cpp.

◆ generic_factory()

SmartPtr< RootData > Atlas::Objects::generic_factory ( const std::string &  name,
int  no 
)

Definition at line 33 of file Factories.cpp.

◆ smart_dynamic_cast()

template<typename returnPtrType , class fromType >
returnPtrType Atlas::Objects::smart_dynamic_cast ( const SmartPtr< fromType > &  o)

Definition at line 122 of file SmartPtr.h.

◆ smart_static_cast()

template<typename returnPtrType , class fromType >
returnPtrType Atlas::Objects::smart_static_cast ( const SmartPtr< fromType > &  o)

Definition at line 128 of file SmartPtr.h.

Variable Documentation

◆ ID_ATTR

const std::string Atlas::Objects::ID_ATTR = "id"

Definition at line 15 of file Root.cpp.

◆ ID_FLAG

const uint32_t Atlas::Objects::ID_FLAG = 1u << 1u

Definition at line 173 of file Root.h.

◆ NAME_ATTR

const std::string Atlas::Objects::NAME_ATTR = "name"

Definition at line 19 of file Root.cpp.

◆ NAME_FLAG

const uint32_t Atlas::Objects::NAME_FLAG = 1u << 5u

Definition at line 205 of file Root.h.

◆ OBJTYPE_ATTR

const std::string Atlas::Objects::OBJTYPE_ATTR = "objtype"

Definition at line 18 of file Root.cpp.

◆ OBJTYPE_FLAG

const uint32_t Atlas::Objects::OBJTYPE_FLAG = 1u << 4u

Definition at line 197 of file Root.h.

◆ PARENT_ATTR

const std::string Atlas::Objects::PARENT_ATTR = "parent"

Definition at line 16 of file Root.cpp.

◆ PARENT_FLAG

const uint32_t Atlas::Objects::PARENT_FLAG = 1u << 2u

Definition at line 181 of file Root.h.

◆ STAMP_ATTR

const std::string Atlas::Objects::STAMP_ATTR = "stamp"

Definition at line 17 of file Root.cpp.

◆ STAMP_FLAG

const uint32_t Atlas::Objects::STAMP_FLAG = 1u << 3u

Definition at line 189 of file Root.h.