DEIMOS
Earth Observation Software
Orbit and Attitude Adapater Tool
ESA
AdpUtils.h
1/* -----------------------------------------------------------------------
2 * Earth Observation Mission Software.
3 *
4 * Project: EO Orbit and Attitude Adapter
5 * -----------------------------------------------------------------------
6 * Company: Deimos Space, S.L.U
7 * -----------------------------------------------------------------------
8 */
9
10#ifndef ADPUTILS
11#define ADPUTILS
12
13#include <EoAdapterError.h>
14#include <DLLDefines.h>
15#include <EETime.h>
16#include <iostream>
17#include <sstream>
18#include <string>
19
20// Note: no pretty function for visual Studio
21#if defined(WIN32) || defined(WIN64)
22 #define __PRETTY_FUNCTION__ __FUNCTION__
23#endif
24
25template <typename T> string toStr(T const& value)
26{
27 std::ostringstream sstr;
28 sstr << value;
29 return sstr.str();
30}
31
34class EOADAPTER_EXPORT AdpUtils
35{
40 public:
41
42 static long getTimeRef(string auxVal) throw (EoAdapterError);
43
48 static long getCsRef(string auxVal) throw (EoAdapterError);
49
54 static long getTargetFrame(string auxVal) throw (EoAdapterError);
55
56
62 static long getSatellite(string satelliteName);
63
68 static string getMonth(string monthNumber);
69
75 static void getRotationMatrix(Time t,
76 long csOut,
77 long csIn,
78 double matrix[3][3]) throw (EoAdapterError);
79};
80
81#endif
Class containing common util methods for the EO Orbit/Attitude adapter classes.
Definition AdpUtils.h:35
static long getSatellite(string satelliteName)
Get satellite CFI ID.
static long getTimeRef(string auxVal)
Get CFI enumeration value for the input time reference name.
static long getTargetFrame(string auxVal)
Get CFI enumeration value for the input attitude target reference name.
static long getCsRef(string auxVal)
Get CFI enumeration value for the input CS reference name.
static string getMonth(string monthNumber)
Get moth according to DFDL4S UTC-TAI history table.
static void getRotationMatrix(Time t, long csOut, long csIn, double matrix[3][3])
It returns the matrix that transforms the the vectors in csIn to csOut.
Class to get errors from the EoOrbAttAdapater tool.
Definition EoAdapterError.h:27

Generated on Tue Apr 15 2025 16:23:51 for My Project by doxygen 1.13.2