Remote Call Framework 3.2
SerializeParent.hpp
Go to the documentation of this file.
1 
2 //******************************************************************************
3 // RCF - Remote Call Framework
4 //
5 // Copyright (c) 2005 - 2020, 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.2
15 // Contact: support <at> deltavsoft.com
16 //
17 //******************************************************************************
18 
20 
21 #ifndef INCLUDE_SF_SERIALIZEPARENT_HPP
22 #define INCLUDE_SF_SERIALIZEPARENT_HPP
23 
24 #include <SF/Archive.hpp>
25 #include <SF/SerializePolymorphic.hpp>
26 
27 namespace SF {
28 
32  template<typename Base, typename Derived>
33  void serializeParent(Archive & ar, Derived & derived)
34  {
35  ar & SF::Archive::PARENT & static_cast<Base &>(derived);
36  }
37 
38 } // namespace SF
39 
40 #endif // ! INCLUDE_SF_SERIALIZEPARENT_HPP
Represents an archive, in which serialized objects are stored.
Definition: Archive.hpp:32
void serializeParent(Archive &ar, Derived &derived)
Definition: SerializeParent.hpp:33
Definition: ByteBuffer.hpp:189