Attributes.hpp

00001 #ifndef __FIBER_ATTRIBUTES_HPP
00002 #define __FIBER_ATTRIBUTES_HPP
00003 
00004 #include "FieldAPI.h"
00005 #include <memcore/Chunk.hpp>
00006 #include <string>
00007 #include <map>
00008 
00009 namespace Fiber
00010 {
00011         using MemCore::ReferenceBase;
00012         using MemCore::StrongPtr;
00013         using MemCore::NullPtr;
00014         using std::string;
00015         using std::map;
00016 
00021 class   FIELD_API Attributes
00022 {
00023         typedef map< std::string, RefPtr<MemCore::ChunkBase> > attributes_t;
00024 
00025         attributes_t attributes;
00026 
00027 public:
00029         Attributes();
00030 
00032         ~Attributes();
00033 
00034         void setAttribute(const std::string&name, const RefPtr<MemCore::ChunkBase> &AttribData);
00035 
00036         RefPtr<MemCore::ChunkBase> getAttribute(const std::string&name) const;
00037 
00038 };
00039 
00040 } /* namespace Fiber */ 
00041 
00042 #endif /* __FIBER_ATTRIBUTES_HPP */