← Documentation
ADS-IDAC Engine 5.0.0
KBExpectedSupportSystemStateUnit.h
Go to the documentation of this file.
1#include <iostream>
2#include <typeinfo>
3#ifndef KBEXPECTEDSUPPORTSYSTEMSTATEUNIT_H
4#define KBEXPECTEDSUPPORTSYSTEMSTATEUNIT_H
5
6#include "KBElement.h"
7#include "../Procedure/ExpectationElement.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
13
15 public KBElement,
17{
18 public:
21 void setExpectedState(int);
22 void readInfoFromFile(std::ifstream &);
23 int getExpectedState();
24 int checkForMatch(std::string , int );
28 // Serialization using Boost
30 template<class Archive>
31 void serialize(Archive & ar, const unsigned int version)
32 {
33// std::cout << "Serializing class: " << typeid(*this).name() << std::endl;
34 // Serialize base classes' data members
35 ar & boost::serialization::base_object<KBElement>(*this);
36 ar & boost::serialization::base_object<ExpectationElement>(*this);
37 // Serialize specific data members of this class
38 ar & expected_state;
39 }
40 private:
42
43};
44
45
46BOOST_CLASS_EXPORT_KEY(KBExpectedSupportSystemStateUnit)
47#endif //KBEXPECTEDSUPPORTSYSTEMSTATEUNIT_H
void serialize(Archive &ar, const unsigned int version)
void copyKBExpectedSupportSystemStateUnit(KBExpectedSupportSystemStateUnit &)
void retrieveKBExpectedSupportSystemStateUnitFromFile(std::ifstream &)
friend class boost::serialization::access