← Documentation
ADS-IDAC Engine 5.0.0
MentalSupportSystemState.h
Go to the documentation of this file.
1#include <iostream>
2#include <typeinfo>
3#ifndef MENTALSUPPORTSYSTEMSTATE_H
4#define MENTALSUPPORTSYSTEMSTATE_H
5
6#include "MentalInfo.h"
7#include "../ControlPanel/DisplayElement.h"
8#include <boost/serialization/base_object.hpp>
9#include <boost/archive/text_oarchive.hpp>
10#include <boost/archive/text_iarchive.hpp>
11#include <boost/serialization/export.hpp>
12
14 public DisplayElement,
15 public MentalInfo
16{
17 public:
23 void saveMentalSupportSystemStateToFile(std::ofstream &);
24 void retrieveMentalSupportSystemStateFromFile(std::ifstream &);
26 // Serialization using Boost
28 template<class Archive>
29 void serialize(Archive & ar, const unsigned int version)
30 {
31// std::cout << "Serializing class: " << typeid(*this).name() << std::endl;
32 // Serialize base classes' data members
33 ar & boost::serialization::base_object<DisplayElement>(*this);
34 ar & boost::serialization::base_object<MentalInfo>(*this);
35 // Serialize specific data members of this class
37 }
38 private:
40};
41
42
43BOOST_CLASS_EXPORT_KEY(MentalSupportSystemState)
44#endif //MENTALSUPPORTSYSTEMSTATE_H
void copyMentalSupportSystemState(MentalSupportSystemState &)
void serialize(Archive &ar, const unsigned int version)
void saveMentalSupportSystemStateToFile(std::ofstream &)
void retrieveMentalSupportSystemStateFromFile(std::ifstream &)
friend class boost::serialization::access
bool checkIfIsIdenticalMentalSupportSystemState(MentalSupportSystemState &)