← Documentation
ADS-IDAC Engine 5.0.0
DisplayElement.h
Go to the documentation of this file.
1#pragma once
2
3#include <iostream>
4#include <typeinfo>
5// DisplayElement.h: interface for the DisplayElement class.
6//
8
9#include <math.h>
10#include <boost/serialization/export.hpp>
11
12#include "../Global/TermConversions.h"
13#include "../System/SystemModule.h"
14#include <boost/archive/text_oarchive.hpp>
15#include <boost/archive/text_iarchive.hpp>
16#include <boost/serialization/string.hpp>
17#include <boost/serialization/base_object.hpp>
18
20{
21public:
23 virtual ~DisplayElement();
24 void setDisplayName(std::string);
25 void setCorrespondingSystemName(std::string);
29 std::string getCorrespondingSystemName();
33 std::string getDisplayName();
34 void readInfoFromFile(std::ifstream &);
35 void readInfoFromFileWithoutDisplayName(std::ifstream &);
37 void saveDisplayElementToFile(std::ofstream &);
38 void retrieveDisplayElementFromFile(std::ifstream &);
40 friend class boost::serialization::access; // grant access to boost serialization
41 template<class Archive>
42 void serialize(Archive & ar, const unsigned int version)
43 {
44// std::cout << "Serializing class: " << typeid(*this).name() << std::endl;
45 ar & display_name;
50 }
51private:
52 std::string display_name;
55};
56
57
58BOOST_CLASS_EXPORT_KEY(DisplayElement)
void saveDisplayElementToFile(std::ofstream &)
void readInfoFromFile(std::ifstream &)
void serialize(Archive &ar, const unsigned int version)
std::string getDisplayName()
void setTimeRequiredForCheckingThisDisplay(double)
std::string getCorrespondingSystemName()
double time_required_for_checking_this_display
std::string corresponding_system_parameter_unit
virtual ~DisplayElement()
bool checkIfIsIdenticalDisplayElement(DisplayElement &)
double getTimeRequiredForCheckingThisDisplay()
void setDisplayName(std::string)
std::string getCorrespondingSystemParameterName()
std::string display_name
void retrieveDisplayElementFromFile(std::ifstream &)
void readInfoFromFileWithoutDisplayName(std::ifstream &)
void setCorrespondingSystemParameterUnit(std::string)
void copyDisplayElement(DisplayElement &)
void setCorrespondingSystemParameterName(std::string)
friend class boost::serialization::access
void setCorrespondingSystemName(std::string)
std::string corresponding_system_name
std::string getCorrespondingSystemParameterUnit()
std::string corresponding_system_parameter_name