← Documentation
ADS-IDAC Engine 5.0.0
InteractiveVariable.h
Go to the documentation of this file.
1#pragma once
2
3#include <iostream>
4#include <typeinfo>
5#include <boost/serialization/base_object.hpp>
6#include <boost/archive/text_iarchive.hpp>
7#include <boost/archive/text_oarchive.hpp>
8#include "THElement.h"
9#include "../Global/fmodule.h"
10#include <boost/serialization/export.hpp>
11
12extern "C" {
13void finteract_(int, double);
14}
15
17public:
19 virtual ~InteractiveVariable();
20 void setInputValue(double val);
21 double getInputValue();
22 void setDisplayValue(double val);
23 double getDisplayValue();
24 void setNeedToInteract(bool flag);
25 bool getNeedToInteract();
27 void readInfoFromFile(std::ifstream &);
28 void setInteractiveAction(double);
29 void setSequenceInTheArray(int seq);
32 void saveInteractiveVariableToFile(std::ofstream &);
33 void retrieveInteractiveVariableFromFile(std::ifstream &);
34
35private:
40
42 template<class Archive>
43 void serialize(Archive &ar, const unsigned int version) {
44// std::cout << "Serializing class: " << typeid(*this).name() << std::endl;
45 ar & boost::serialization::base_object<THElement>(*this);
46 ar & input_value;
47 ar & display_value;
50 }
51};
52
53
54BOOST_CLASS_EXPORT_KEY(InteractiveVariable)
void finteract_(int, double)
void setInteractiveAction(double)
void setDisplayValue(double val)
void readInfoFromFile(std::ifstream &)
void setInputValue(double val)
void serialize(Archive &ar, const unsigned int version)
void copyInteractiveVariable(InteractiveVariable &)
void retrieveInteractiveVariableFromFile(std::ifstream &)
friend class boost::serialization::access
void setNeedToInteract(bool flag)
void setSequenceInTheArray(int seq)
void saveInteractiveVariableToFile(std::ofstream &)