OSFEG-C++  1.5.0
OpenSF Error Generation Library
ErrorSources.h
1 /*
2  * openSF Error Generation Libraries (OSFEG)
3  * Deimos Space, S.L.U.
4  *
5  * This file is part of OSFEG. OSFEG is free software; you can redistribute it
6  * and/or modify it under the terms of the 'ESA Software Community Licence Permissive' as
7  * published by the European Space Agency; either version 2.4 of the License,
8  * or (at your option) any later version. You should have received a
9  * copy of the 'ESA Software Community Licence Permissive - v2.4' along with this program
10  * or one can be found at <http://eop-cfi.esa.int/index.php/docs-and-mission-data/licensing-documents>.
11  *
12  */
13 
14 #include "IErrorSources.h"
15 
16 #include <string>
17 #include <map>
18 #include <memory>
19 
20 #include "stl_tree/Composite.h"
21 
23 using errorsMap [[deprecated("Internal alias, will be removed")]] = std::map<std::string, Composite*>;
24 
29 class ErrorSources: public IErrorSources {
30 public:
31 
37  ErrorSources(const std::string& errorFileName);
38 
39  virtual ~ErrorSources();
40 
44  double getSimTime();
45 
54  double getError(const std::string& paramName, const double time) override;
55 
56 private:
57  double simTime;
58  std::map<std::string,std::unique_ptr<Composite>> errors;
59 };
Definition: ErrorSources.h:29
double getError(const std::string &paramName, const double time) override
double getSimTime()
ErrorSources(const std::string &errorFileName)
Definition: IErrorSources.h:22