中间件底层,websocket

Node.hpp 1.5KB

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