43 #ifndef PROPERTYDEFINES_HH_
44 #define PROPERTYDEFINES_HH_
51 #include "PropertyHandles.hh"
52 #include "PropertyPtr.hh"
57 class OpenVolumeMeshPropertyT;
59 class ResourceManager;
64 template <>
const std::string typeName<int>();
65 template <>
const std::string typeName<unsigned int>();
66 template <>
const std::string typeName<short>();
67 template <>
const std::string typeName<long>();
68 template <>
const std::string typeName<unsigned long>();
69 template <>
const std::string typeName<char>();
70 template <>
const std::string typeName<unsigned char>();
71 template <>
const std::string typeName<bool>();
72 template <>
const std::string typeName<float>();
73 template <>
const std::string typeName<double>();
74 template <>
const std::string typeName<std::string>();
82 virtual void serialize(std::ostream& _ostr)
const;
83 virtual void deserialize(std::istream& _istr);
84 virtual const std::string entityType()
const {
return "VProp"; }
85 virtual const std::string typeNameWrapper()
const {
return typeName<T>(); }
92 virtual void serialize(std::ostream& _ostr)
const;
93 virtual void deserialize(std::istream& _istr);
94 virtual const std::string entityType()
const {
return "EProp"; }
95 virtual const std::string typeNameWrapper()
const {
return typeName<T>(); }
102 virtual void serialize(std::ostream& _ostr)
const;
103 virtual void deserialize(std::istream& _istr);
104 virtual const std::string entityType()
const {
return "HEProp"; }
105 virtual const std::string typeNameWrapper()
const {
return typeName<T>(); }
112 virtual void serialize(std::ostream& _ostr)
const;
113 virtual void deserialize(std::istream& _istr);
114 virtual const std::string entityType()
const {
return "FProp"; }
115 virtual const std::string typeNameWrapper()
const {
return typeName<T>(); }
122 virtual void serialize(std::ostream& _ostr)
const;
123 virtual void deserialize(std::istream& _istr);
124 virtual const std::string entityType()
const {
return "HFProp"; }
125 virtual const std::string typeNameWrapper()
const {
return typeName<T>(); }
132 virtual void serialize(std::ostream& _ostr)
const;
133 virtual void deserialize(std::istream& _istr);
134 virtual const std::string entityType()
const {
return "CProp"; }
135 virtual const std::string typeNameWrapper()
const {
return typeName<T>(); }
142 virtual void serialize(std::ostream& _ostr)
const;
143 virtual void deserialize(std::istream& _istr);
144 virtual const std::string entityType()
const {
return "MProp"; }
145 virtual const std::string typeNameWrapper()
const {
return typeName<T>(); }
150 #if defined(INCLUDE_TEMPLATES) && !defined(PROPERTYDEFINEST_CC)
151 #include "PropertyDefinesT.cc"
VertexPropertyT(const std::string &_name, ResourceManager &_resMan, VertexPropHandle _handle, const T _def=T())
Property classes for the different entity types.
DLLEXPORT QString typeName(DataType _id)
Get the name of a type with given id.
Property classes for the different entity types.