← Documentation
ADS-IDAC Engine 5.0.0
CommunicationComponentState.h
Go to the documentation of this file.
1#pragma once
2
3#include <iostream>
4#include <typeinfo>
5// CommunicationComponentState.h: interface for the CommunicationComponentState class.
6//
8
9#include "Communication.h"
10#include "../ControlPanel/DisplayElement.h"
11#include <boost/serialization/serialization.hpp>
12#include <boost/serialization/base_object.hpp>
13#include <boost/serialization/export.hpp>
14#include <boost/archive/text_oarchive.hpp>
15#include <boost/archive/text_iarchive.hpp>
16
18 public Communication,
19 public DisplayElement
20{
21public:
28 // Removed file-based methods for simplicity in the context of serialization
29private:
31
32 // Grant serialization access
34
35 // Serialization method
36 template<class Archive>
37 void serialize(Archive & ar, const unsigned int version)
38 {
39// std::cout << "Serializing class: " << typeid(*this).name() << std::endl;
40 // Serialize base classes
41 ar & boost::serialization::base_object<Communication>(*this);
42 ar & boost::serialization::base_object<DisplayElement>(*this);
43 // Serialize members
45 }
46};
47
48
49BOOST_CLASS_EXPORT_KEY(CommunicationComponentState)
void serialize(Archive &ar, const unsigned int version)
friend class boost::serialization::access
void copyCommunicationComponentState(CommunicationComponentState &)