Remote Call Framework 3.1
Node.hpp
1 
2 //******************************************************************************
3 // RCF - Remote Call Framework
4 //
5 // Copyright (c) 2005 - 2019, Delta V Software. All rights reserved.
6 // http://www.deltavsoft.com
7 //
8 // RCF is distributed under dual licenses - closed source or GPL.
9 // Consult your particular license for conditions of use.
10 //
11 // If you have not purchased a commercial license, you are using RCF
12 // under GPL terms.
13 //
14 // Version: 3.1
15 // Contact: support <at> deltavsoft.com
16 //
17 //******************************************************************************
18 
19 #ifndef INCLUDE_SF_NODE_HPP
20 #define INCLUDE_SF_NODE_HPP
21 
22 #include <SF/DataPtr.hpp>
23 #include <SF/PortableTypes.hpp>
24 
25 namespace SF {
26 
27  //****************************************************************************
28  // Node class represents a node in the serialized hierarchy of objects
29  // (eg XML streams would translate it to an element in a DOM tree)
30 
31  class Node : Noncopyable
32  {
33  public:
34  Node() :
35  type(),
36  label(),
37  id(),
38  ref()
39  {}
40 
41  Node(
42  const DataPtr & type,
43  const DataPtr & label,
44  const UInt32 id,
45  const UInt32 nullPtr) :
46  type(type),
47  label(label),
48  id(id),
49  ref(nullPtr)
50  {}
51 
52  DataPtr type;
53  DataPtr label;
54  UInt32 id;
55  UInt32 ref;
56  };
57 
58 } // namespace SF
59 
60 #endif // ! INCLUDE_SF_NODE_HPP
Definition: ByteBuffer.hpp:189