Remote Call Framework 3.4
SerializeParent.hpp
Go to the documentation of this file.
1 
2 //******************************************************************************
3 // RCF - Remote Call Framework
4 //
5 // Copyright (c) 2005 - 2023, Delta V Software. All rights reserved.
6 // https://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 under GPL terms.
12 //
13 // Version: 3.4
14 // Contact: support <at> deltavsoft.com
15 //
16 //******************************************************************************
17 
19 
20 #ifndef INCLUDE_SF_SERIALIZEPARENT_HPP
21 #define INCLUDE_SF_SERIALIZEPARENT_HPP
22 
23 #include <SF/Archive.hpp>
24 #include <SF/SerializePolymorphic.hpp>
25 
26 namespace SF {
27 
31  template<typename Base, typename Derived>
32  void serializeParent(Archive & ar, Derived & derived)
33  {
34  ar & SF::Archive::PARENT & static_cast<Base &>(derived);
35  }
36 
37 } // namespace SF
38 
39 #endif // ! INCLUDE_SF_SERIALIZEPARENT_HPP
Represents an archive, in which serialized objects are stored.
Definition: Archive.hpp:31
void serializeParent(Archive &ar, Derived &derived)
Definition: SerializeParent.hpp:32
Definition: ByteBuffer.hpp:188