ngc 1.5.0
 
Loading...
Searching...
No Matches
ngcdcsGEOSNAP.hpp
Go to the documentation of this file.
1
8#ifndef ngcdcsGEOSNAP_H
9#define ngcdcsGEOSNAP_H
10
11
12#ifndef __cplusplus
13#error This is a C++ include file and cannot be used from plain C
14#endif
15
16#include <ngc/core/ngcbAddr.h>
17#include <ngc/core/ngcbMOD.hpp>
19
20
21
23#define ngcdcsGEOSNAP_MAX_INITFILES 8
24
29{
30public:
32 explicit ngcdcsGEOSNAP(const ngcb_route_t &r);
33
35 ngcdcsGEOSNAP(ngcbIFC *ifc, const ngcb_route_t &r);
36
38 virtual ~ngcdcsGEOSNAP();
39
42
45
47 void Reset() override;
48
50 int Enable(int check = 1) override;
51
53 int Disable() override;
54
56 int Selftest();
57
59 int Action(const char *action, char *reply = NULL);
60
62 int SetupKey(const char *key, const int *idx, const char *value,
63 int *status = NULL);
64
66 int StatusKey(const char *key, const int *idx, char *value,
67 int *status = NULL);
68
69protected:
70
71private:
73 void Init_();
74};
75
76#endif
Definition ngcbIFC.hpp:760
ngcbMOD(const ngcbMOD &other)
Copy constructor.
Definition ngcbMOD.cpp:43
int Action(const char *action, char *reply=NULL)
Execute GEOSNAP action.
Definition ngcdcsGEOSNAP.cpp:97
ngcdcsGEOSNAP(const ngcb_route_t &r)
Constructor with route and external reference.
Definition ngcdcsGEOSNAP.cpp:21
char resetFile[ngcdcsGEOSNAP_MAX_INITFILES][256]
Register reset files.
Definition ngcdcsGEOSNAP.hpp:44
int Enable(int check=1) override
Call-back at transition to operational state.
Definition ngcdcsGEOSNAP.cpp:48
int SetupKey(const char *key, const int *idx, const char *value, int *status=NULL)
Setup.
Definition ngcdcsGeosnapSetup.cpp:20
void Reset() override
Align software state after reset.
Definition ngcdcsGEOSNAP.cpp:44
int Disable() override
Call-back at transition to not operational state.
Definition ngcdcsGEOSNAP.cpp:69
virtual ~ngcdcsGEOSNAP()
Destructor.
Definition ngcdcsGEOSNAP.cpp:31
int StatusKey(const char *key, const int *idx, char *value, int *status=NULL)
Status.
Definition ngcdcsGeosnapStatus.cpp:20
int Selftest()
Execute selftest.
Definition ngcdcsGEOSNAP.cpp:92
char initFile[ngcdcsGEOSNAP_MAX_INITFILES][256]
Register initialization files.
Definition ngcdcsGEOSNAP.hpp:41
#define ngcdcsGEOSNAP_MAX_INITFILES
Maximum number of register initialization files.
Definition ngcdcsGEOSNAP.hpp:23
Definition ngcbIFC.hpp:78