43 #define PROPERTYDEFINEST_CC
48 #include "PropertyDefines.hh"
65 void VertexPropertyT<T>::deserialize(std::istream& _istr) {
66 PropertyPtr<OpenVolumeMeshPropertyT<T>, VertexPropHandle>::get()->deserialize(_istr);
70 EdgePropertyT<T>::EdgePropertyT(
const std::string& _name, ResourceManager& _resMan, EdgePropHandle _handle,
const T _def) :
71 PropertyPtr<OpenVolumeMeshPropertyT<T>, EdgePropHandle>(new OpenVolumeMeshPropertyT<T>(_name, _def), _resMan, _handle) {
76 void EdgePropertyT<T>::serialize(std::ostream& _ostr)
const {
77 PropertyPtr<OpenVolumeMeshPropertyT<T>, EdgePropHandle>::get()->serialize(_ostr);
81 void EdgePropertyT<T>::deserialize(std::istream& _istr) {
82 PropertyPtr<OpenVolumeMeshPropertyT<T>, EdgePropHandle>::get()->deserialize(_istr);
86 HalfEdgePropertyT<T>::HalfEdgePropertyT(
const std::string& _name, ResourceManager& _resMan, HalfEdgePropHandle _handle,
const T _def) :
87 PropertyPtr<OpenVolumeMeshPropertyT<T>, HalfEdgePropHandle>(new OpenVolumeMeshPropertyT<T>(_name, _def), _resMan, _handle) {
92 void HalfEdgePropertyT<T>::serialize(std::ostream& _ostr)
const {
93 PropertyPtr<OpenVolumeMeshPropertyT<T>, HalfEdgePropHandle>::get()->serialize(_ostr);
97 void HalfEdgePropertyT<T>::deserialize(std::istream& _istr) {
98 PropertyPtr<OpenVolumeMeshPropertyT<T>, HalfEdgePropHandle>::get()->deserialize(_istr);
102 FacePropertyT<T>::FacePropertyT(
const std::string& _name, ResourceManager& _resMan, FacePropHandle _handle,
const T _def) :
103 PropertyPtr<OpenVolumeMeshPropertyT<T>, FacePropHandle>(new OpenVolumeMeshPropertyT<T>(_name, _def), _resMan, _handle) {
108 void FacePropertyT<T>::serialize(std::ostream& _ostr)
const {
109 PropertyPtr<OpenVolumeMeshPropertyT<T>, FacePropHandle>::get()->serialize(_ostr);
113 void FacePropertyT<T>::deserialize(std::istream& _istr) {
114 PropertyPtr<OpenVolumeMeshPropertyT<T>, FacePropHandle>::get()->deserialize(_istr);
118 HalfFacePropertyT<T>::HalfFacePropertyT(
const std::string& _name, ResourceManager& _resMan, HalfFacePropHandle _handle,
const T _def) :
119 PropertyPtr<OpenVolumeMeshPropertyT<T>, HalfFacePropHandle>(new OpenVolumeMeshPropertyT<T>(_name, _def), _resMan, _handle) {
124 void HalfFacePropertyT<T>::serialize(std::ostream& _ostr)
const {
125 PropertyPtr<OpenVolumeMeshPropertyT<T>, HalfFacePropHandle>::get()->serialize(_ostr);
129 void HalfFacePropertyT<T>::deserialize(std::istream& _istr) {
130 PropertyPtr<OpenVolumeMeshPropertyT<T>, HalfFacePropHandle>::get()->deserialize(_istr);
134 CellPropertyT<T>::CellPropertyT(
const std::string& _name, ResourceManager& _resMan, CellPropHandle _handle,
const T _def) :
135 PropertyPtr<OpenVolumeMeshPropertyT<T>, CellPropHandle>(new OpenVolumeMeshPropertyT<T>(_name, _def), _resMan, _handle) {
140 void CellPropertyT<T>::serialize(std::ostream& _ostr)
const {
141 PropertyPtr<OpenVolumeMeshPropertyT<T>, CellPropHandle>::get()->serialize(_ostr);
145 void CellPropertyT<T>::deserialize(std::istream& _istr) {
146 PropertyPtr<OpenVolumeMeshPropertyT<T>, CellPropHandle>::get()->deserialize(_istr);
150 MeshPropertyT<T>::MeshPropertyT(
const std::string& _name, ResourceManager& _resMan, MeshPropHandle _handle,
const T _def) :
151 PropertyPtr<OpenVolumeMeshPropertyT<T>, MeshPropHandle>(new OpenVolumeMeshPropertyT<T>(_name, _def), _resMan, _handle) {
156 void MeshPropertyT<T>::serialize(std::ostream& _ostr)
const {
157 PropertyPtr<OpenVolumeMeshPropertyT<T>, MeshPropHandle>::get()->serialize(_ostr);
161 void MeshPropertyT<T>::deserialize(std::istream& _istr) {
162 PropertyPtr<OpenVolumeMeshPropertyT<T>, MeshPropHandle>::get()->deserialize(_istr);
167 throw std::runtime_error(
"Serialization is not supported for these data types!");
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.
Default property class for any type T.