← Documentation
ADS-IDAC Engine 5.0.0
InfoChunkMental.h
Go to the documentation of this file.
1#include <iostream>
2#include <typeinfo>
3// InfoChunkMental.h: interface for the InfoChunkMental class.
4#pragma once
5
6#include "InfoChunk.h"
7#include "../ControlPanel/StateOfActivation.h"
8#include <boost/serialization/export.hpp>
9
10#include <list>
11#include <fstream>
12#include <boost/serialization/list.hpp>
13#include <boost/serialization/base_object.hpp>
14
16{
17public:
19 virtual ~InfoChunkMental();
20 void setPriority(double);
21 double getPriority();
22 void calculatePriority();
24 int getRelatedSubSystem(int);
28 void saveInfoChunkMentalToFile(std::ofstream &);
29 void retrieveInfoChunkMentalFromFile(std::ifstream &);
30 //
31 std::list<int> related_subsystem;
32 // Grant serialization access
34 template<class Archive>
35 void serialize(Archive & ar, const unsigned int version)
36 {
37// std::cout << "Serializing class: " << typeid(*this).name() << std::endl;
38 // Serialize base class data
39 ar & boost::serialization::base_object<InfoChunk>(*this);
40 ar & boost::serialization::base_object<StateOfActivation>(*this);
41
42 // Serialize members of InfoChunkMental
44 ar & priority;
45 }
46private:
47 double priority;
48};
virtual ~InfoChunkMental()
std::list< int > related_subsystem
bool checkWhetherSubSystemIsIncluded(int)
void retrieveInfoChunkMentalFromFile(std::ifstream &)
void clearInfoChunkMentalPointers()
void saveInfoChunkMentalToFile(std::ofstream &)
void serialize(Archive &ar, const unsigned int version)
void setPriority(double)
friend class boost::serialization::access
int getRelatedSubSystem(int)
void copyInfoChunkMental(InfoChunkMental &)