CDataNodePolylineBase.h
Go to the documentation of this file.
1 #ifndef i2d_CDataNodePolylineBase_included
2 #define i2d_CDataNodePolylineBase_included
3 
4 
5 // ACF includes
6 #include <i2d/CPolyline.h>
7 
8 
9 namespace i2d
10 {
11 
12 
17 {
18 public:
20 
24  virtual const iser::ISerializable& GetNodeData(int nodeIndex) const = 0;
25 
29  virtual iser::ISerializable& GetNodeDataRef(int nodeIndex) = 0;
30 
31  // reimplemented (iser::ISerializable)
32  virtual bool Serialize(iser::IArchive& archive);
33 };
34 
35 
36 } // namespace i2d
37 
38 
39 #endif // !i2d_CDataNodePolylineBase_included
40 
Base class for polylines with additional data stored in each node.
virtual const iser::ISerializable & GetNodeData(int nodeIndex) const =0
Get user data from the given node.
Common class for all classes which objects can be archived or restored from archive.
Definition: ISerializable.h:23
virtual bool Serialize(iser::IArchive &archive)
Load or store state of this object as a archive stream.
Represent input/output persistence archive.
Definition: IArchive.h:30
virtual iser::ISerializable & GetNodeDataRef(int nodeIndex)=0
This is an overloaded member function, provided for convenience. It differs from the above function o...
2D-object representing a polyline.
Definition: CPolyline.h:18

© 2007-2017 Witold Gantzke and Kirill Lepskiy