Developer Documentation
PropertyDefinesT.cc
1 /*===========================================================================*\
2  * *
3  * OpenVolumeMesh *
4  * Copyright (C) 2011 by Computer Graphics Group, RWTH Aachen *
5  * www.openvolumemesh.org *
6  * *
7  *---------------------------------------------------------------------------*
8  * This file is part of OpenVolumeMesh. *
9  * *
10  * OpenVolumeMesh is free software: you can redistribute it and/or modify *
11  * it under the terms of the GNU Lesser General Public License as *
12  * published by the Free Software Foundation, either version 3 of *
13  * the License, or (at your option) any later version with the *
14  * following exceptions: *
15  * *
16  * If other files instantiate templates or use macros *
17  * or inline functions from this file, or you compile this file and *
18  * link it with other files to produce an executable, this file does *
19  * not by itself cause the resulting executable to be covered by the *
20  * GNU Lesser General Public License. This exception does not however *
21  * invalidate any other reasons why the executable file might be *
22  * covered by the GNU Lesser General Public License. *
23  * *
24  * OpenVolumeMesh is distributed in the hope that it will be useful, *
25  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
26  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
27  * GNU Lesser General Public License for more details. *
28  * *
29  * You should have received a copy of the GNU LesserGeneral Public *
30  * License along with OpenVolumeMesh. If not, *
31  * see <http://www.gnu.org/licenses/>. *
32  * *
33 \*===========================================================================*/
34 
35 /*===========================================================================*\
36  * *
37  * $Revision$ *
38  * $Date$ *
39  * $LastChangedBy$ *
40  * *
41 \*===========================================================================*/
42 
43 #define PROPERTYDEFINEST_CC
44 
45 #include <istream>
46 #include <ostream>
47 
48 #include "PropertyDefines.hh"
49 
50 namespace OpenVolumeMesh {
51 
53 template<class T>
54 VertexPropertyT<T>::VertexPropertyT(const std::string& _name, ResourceManager& _resMan, VertexPropHandle _handle, const T _def) :
55  PropertyPtr<OpenVolumeMeshPropertyT<T>, VertexPropHandle>(new OpenVolumeMeshPropertyT<T>(_name, _def), _resMan, _handle) {
56 
57 }
58 
59 template<class T>
60 void VertexPropertyT<T>::serialize(std::ostream& _ostr) const {
62 }
63 
64 template<class T>
65 void VertexPropertyT<T>::deserialize(std::istream& _istr) {
66  PropertyPtr<OpenVolumeMeshPropertyT<T>, VertexPropHandle>::get()->deserialize(_istr);
67 }
68 
69 template<class T>
70 EdgePropertyT<T>::EdgePropertyT(const std::string& _name, ResourceManager& _resMan, EdgePropHandle _handle, const T _def) :
72 
73 }
74 
75 template<class T>
76 void EdgePropertyT<T>::serialize(std::ostream& _ostr) const {
77  PropertyPtr<OpenVolumeMeshPropertyT<T>, EdgePropHandle>::get()->serialize(_ostr);
78 }
79 
80 template<class T>
81 void EdgePropertyT<T>::deserialize(std::istream& _istr) {
82  PropertyPtr<OpenVolumeMeshPropertyT<T>, EdgePropHandle>::get()->deserialize(_istr);
83 }
84 
85 template<class T>
86 HalfEdgePropertyT<T>::HalfEdgePropertyT(const std::string& _name, ResourceManager& _resMan, HalfEdgePropHandle _handle, const T _def) :
88 
89 }
90 
91 template<class T>
92 void HalfEdgePropertyT<T>::serialize(std::ostream& _ostr) const {
94 }
95 
96 template<class T>
97 void HalfEdgePropertyT<T>::deserialize(std::istream& _istr) {
99 }
100 
101 template<class T>
102 FacePropertyT<T>::FacePropertyT(const std::string& _name, ResourceManager& _resMan, FacePropHandle _handle, const T _def) :
104 
105 }
106 
107 template<class T>
108 void FacePropertyT<T>::serialize(std::ostream& _ostr) const {
109  PropertyPtr<OpenVolumeMeshPropertyT<T>, FacePropHandle>::get()->serialize(_ostr);
110 }
111 
112 template<class T>
113 void FacePropertyT<T>::deserialize(std::istream& _istr) {
114  PropertyPtr<OpenVolumeMeshPropertyT<T>, FacePropHandle>::get()->deserialize(_istr);
115 }
116 
117 template<class T>
118 HalfFacePropertyT<T>::HalfFacePropertyT(const std::string& _name, ResourceManager& _resMan, HalfFacePropHandle _handle, const T _def) :
120 
121 }
122 
123 template<class T>
124 void HalfFacePropertyT<T>::serialize(std::ostream& _ostr) const {
126 }
127 
128 template<class T>
129 void HalfFacePropertyT<T>::deserialize(std::istream& _istr) {
130  PropertyPtr<OpenVolumeMeshPropertyT<T>, HalfFacePropHandle>::get()->deserialize(_istr);
131 }
132 
133 template<class T>
134 CellPropertyT<T>::CellPropertyT(const std::string& _name, ResourceManager& _resMan, CellPropHandle _handle, const T _def) :
136 
137 }
138 
139 template<class T>
140 void CellPropertyT<T>::serialize(std::ostream& _ostr) const {
141  PropertyPtr<OpenVolumeMeshPropertyT<T>, CellPropHandle>::get()->serialize(_ostr);
142 }
143 
144 template<class T>
145 void CellPropertyT<T>::deserialize(std::istream& _istr) {
146  PropertyPtr<OpenVolumeMeshPropertyT<T>, CellPropHandle>::get()->deserialize(_istr);
147 }
148 
149 template<class T>
150 MeshPropertyT<T>::MeshPropertyT(const std::string& _name, ResourceManager& _resMan, MeshPropHandle _handle, const T _def) :
152 
153 }
154 
155 template<class T>
156 void MeshPropertyT<T>::serialize(std::ostream& _ostr) const {
157  PropertyPtr<OpenVolumeMeshPropertyT<T>, MeshPropHandle>::get()->serialize(_ostr);
158 }
159 
160 template<class T>
161 void MeshPropertyT<T>::deserialize(std::istream& _istr) {
162  PropertyPtr<OpenVolumeMeshPropertyT<T>, MeshPropHandle>::get()->deserialize(_istr);
163 }
164 
165 template <class T>
166 const std::string typeName() {
167  throw std::runtime_error("Serialization is not supported for these data types!");
168 }
169 
170 } // Namespace OpenVolumeMesh
VertexPropertyT(const std::string &_name, ResourceManager &_resMan, VertexPropHandle _handle, const T _def=T())
Property classes for the different entity types.
Property classes for the different entity types.
Default property class for any type T.
DLLEXPORT QString typeName(DataType _id)
Get the name of a type with given id.
Definition: Types.cc:165