51 #include "DitsTypes.h"
61 typedef enum { GIT_SIM_NONE=0, GIT_SIM_BASIC, GIT_SIM_COMMANDS,
62 GIT_SIM_STATUS, GIT_SIM_FULL } GitSimulationType;
64 typedef enum { GIT_MON_START, GIT_MON_FORWARD, GIT_MON_ADD,
65 GIT_MON_DELETE, GIT_MON_CANCEL } GitMonitorMsgType;
75 #define GIT_M_SIM_BASIC 1
76 #define GIT_M_SIM_COMMANDS 2
77 #define GIT_M_SIM_STATUS 4
79 #define GIT_M_SIM_ALLLEVELS -1
81 #define GIT_M_ARG_UPPER 1
82 #define GIT_M_ARG_LOWER 2
83 #define GIT_M_ARG_KEEPERR 4
84 #define GIT_M_ARG_ABBREV 8
85 #define GIT_M_ARG_LASTBIT 0x10
87 #define GIT_ARG_LMAX 10
90 DPUBLIC DVOID GitActivate (
91 DCONSTV SdsIdType parsysid,
93 DPUBLIC
int GitSimulation (
94 DCONSTV
char * DCONSTR exName,
96 GitSimulationType * DCONSTR simulation,
97 float * DCONSTR timebase,
98 StatusType * DCONSTR status);
100 DPUBLIC DVOID GitParEnvGetS(
101 DCONSTV
char * DCONSTR pName,
102 DCONSTV
char * DCONSTR eName,
103 DCONSTV
char * DCONSTR badVal,
104 DCONSTV
char * DCONSTR defVal,
105 DCONSTV
int actValLen,
106 char * DCONSTR actVal,
107 StatusType * DCONSTR status);
108 DPUBLIC
int GitEnvGetS(
113 DPUBLIC DVOID GitArgGetS (
114 DCONSTV SdsIdType
id,
116 DCONSTV
int position,
117 DCONSTV
char *values[],
118 DCONSTV
char *defVal,
120 DCONSTV
int actValLen ,
123 StatusType * status);
124 DPUBLIC DVOID GitArgGetI (
125 DCONSTV SdsIdType
id,
127 DCONSTV
int position,
128 DCONSTV
long int range[],
129 DCONSTV
long int defVal,
134 DPUBLIC DVOID GitArgGetD (
135 DCONSTV SdsIdType
id,
137 DCONSTV
int position,
138 DCONSTV
double range[],
139 DCONSTV
double defVal,
144 DPUBLIC DVOID GitArgGetL (
145 DCONSTV SdsIdType
id,
147 DCONSTV
int position,
149 DCONSTV
long int defVal,
154 DPUBLIC DVOID GitArgNamePos (
155 DCONSTV SdsIdType
id,
157 DCONSTV
int position,
160 DPUBLIC DVOID GitPathGetInit(
161 DCONSTV
char * DCONSTV name,
167 DitsActionRoutineType handler,
170 DPUBLIC DVOID GitPathGetComp(
172 DVOIDP * client_data,
176 DPUBLIC DVOID GitTpiInit (StatusType *status);
177 DPUBLIC DVOID GitTpiPut (
181 DPUBLIC DVOID GitTpiGet (
185 DPUBLIC DVOID GitTpiDelete (
189 DPUBLIC DVOID GitArgGetStruct (
190 DCONSTV SdsIdType
id,
192 DCONSTV
int position,
193 DCONSTV
char *defVal,
196 SdsIdType * actValue,
199 DPUBLIC DVOID GitPutDelay(
202 DPUBLIC DVOID GitPutDelayPar(
203 DCONSTV
char * parameter,
207 DPUBLIC DVOID GitTimer(StatusType *status);
208 DPUBLIC DVOID GitTimerArgExtract(DVOIDP ClientData,
const SdsIdType InArg,
209 SdsIdType * DCONSTR OutArg,
210 StatusType * DCONSTR status);
213 typedef DVOID (*GitMonitorStartedType)(
int id,
216 typedef DVOID (*GitMonitorChangedType)(
222 typedef DVOID (*GitMonitorResponseType)(
226 typedef DVOID (*GitTimerArgRoutineType)(
228 SdsIdType InArg, SdsIdType *OutArg,
232 DPUBLIC DVOID GitActivate ();
233 DPUBLIC
int GitSimulation ();
234 DPUBLIC DVOID GitParEnvGetS();
235 DPUBLIC
int GitEnvGetS();
236 DPUBLIC DVOID GitArgGetS ();
237 DPUBLIC DVOID GitArgGetI ();
238 DPUBLIC DVOID GitArgGetD ();
239 DPUBLIC DVOID GitArgGetD ();
240 DPUBLIC DVOID GitArgGetL ();
241 DPUBLIC DVOID GitArgNamePos ();
242 DPUBLIC DVOID GitPathGetInit();
243 DPUBLIC DVOID GitPathGetComp();
244 DPUBLIC DVOID GitTpiInit ();
245 DPUBLIC DVOID GitTpiAdd ();
246 DPUBLIC DVOID GitTpiGet ();
247 DPUBLIC DVOID GitTpiPut ();
248 DPUBLIC DVOID GitTpiDelete ();
249 DPUBLIC DVOID GitArgGetStruct();
250 DPUBLIC DVOID GitPutDelay();
251 DPUBLIC DVOID GitPutDelayPar();
252 DPUBLIC DVOID GitTimer(StatusType *status);
253 DPUBLIC DVOID GitTimerArgExtract();
255 typedef DVOID (*GitMonitorStartedType)();
256 typedef DVOID (*GitMonitorChangedType)();
257 typedef DVOID (*GitMonitorResponseType)();
258 typedef DVOID (*GitTimerArgRoutineType)();
266 #if (!defined(GITMONITORC) || defined(DSTDARG_OK)) && defined(DPROTOTYPES_OK)
267 DPUBLIC DVOID GitMonitorStart(
269 GitMonitorStartedType Started,
270 GitMonitorChangedType Changed,
271 GitMonitorResponseType Completed,
272 GitMonitorResponseType Unexpected,
275 StatusType *status, ...);
276 DPUBLIC DVOID GitMonitorStartF(
279 GitMonitorStartedType Started,
280 GitMonitorChangedType Changed,
281 GitMonitorResponseType Completed,
282 GitMonitorResponseType Unexpected,
285 StatusType *status, ...);
286 DPUBLIC DVOID GitMonitorForward(
289 DCONSTV
char * action,
290 GitMonitorStartedType Started,
291 GitMonitorResponseType Completed,
292 GitMonitorResponseType Unexpected,
295 StatusType *status, ...);
297 DPUBLIC DVOID GitMonitorMessage(
300 GitMonitorMsgType type,
302 DitsTransIdType * transid,
303 StatusType *status,...);
305 #elif !defined(GITMONITORC)
306 DPUBLIC DVOID GitMonitorStart();
307 DPUBLIC DVOID GitMonitorStartF();
308 DPUBLIC DVOID GitMonitorForward();
309 DPUBLIC DVOID GitMonitorChange();
317 char ActionName[DITS_C_NAMELEN];
318 GitTimerArgRoutineType ArgCreateRoutine;
323 DitsGsokMessageType _Message;
327 char TaskName[DITS_C_NAMELEN];
330 DitsPathInfoType Buffers;
336 IMP_AbsTime _StartTime;
364 Upper=GIT_M_ARG_UPPER,
365 Lower=GIT_M_ARG_UPPER,
366 KeepErr=GIT_M_ARG_KEEPERR,
367 Abbrev = GIT_M_ARG_ABBREV,
368 LastBit=GIT_M_ARG_LASTBIT
399 virtual void SetValue(
const unsigned int) = 0;
411 virtual const char *
const * Lookup() = 0;
431 const char *
const Name,
434 const char *Default=0,
439 GitArgGetS((SdsIdType)Id,Name,Position,(
const char **)Lookup(),
441 Flags,
sizeof(
string),
string,&index,status);
502 const char *
const Name,
504 StatusType *
const status,
505 const bool Default =
false,
509 Get(Id,Name,Position,status,Default,Flags);
530 const char *
const Name,
532 StatusType *
const status,
533 const bool Default =
false,
537 GitArgGetL((SdsIdType)Id,Name,Position,Lookup(),Default,
538 Flags,&actValue,status);
539 value = actValue ?
true :
false;
543 operator int()
const {
544 return ((
int)(value));
548 operator bool()
const {
579 virtual const double *
Range() {
return 0; };
600 const char *
const Name,
602 StatusType *
const status,
603 const double Default = 0.0,
607 Get(Id,Name,Position,status,Default,Flags);
628 const char *
const Name,
630 StatusType *
const status,
631 const double Default = 0.0,
634 GitArgGetD((SdsIdType)Id,Name,Position,Range(),Default,
635 Flags,&value,status);
639 operator double()
const {
644 operator float()
const {
675 virtual const long int *
Range() {
return 0; };
696 const char *
const Name,
698 StatusType *
const status,
699 const long int Default = 0,
703 Get(Id,Name,Position,status,Default,Flags);
724 const char *
const Name,
726 StatusType *
const status,
727 const long int Default = 0,
730 GitArgGetI((SdsIdType)Id,Name,Position,Range(),Default,
731 Flags,&value,status);
734 operator long int()
const {
A class which reads integer values from an SDS argument structure.
Definition: Git.h:662
GitBool(const SdsId &Id, const char *const Name, const int Position, StatusType *const status, const bool Default=false, const int Flags=(Git::Upper|Git::Abbrev))
Constructor with the initial value set from an SDS structure.
Definition: Git.h:500
virtual void Get(const SdsId &Id, const char *const Name, const int Position, StatusType *const status, const double Default=0.0, const int Flags=0)
Get the value of the object from an SDS struture.
Definition: Git.h:626
A class which reads logical values from SDS argument structures.
Definition: Git.h:464
virtual ~GitInt()
Destructor.
Definition: Git.h:707
virtual void Get(const SdsId &Id, const char *const Name, const int Position, StatusType *const status, const long int Default=0, const int Flags=0)
Get the value of the object from an SDS struture.
Definition: Git.h:722
virtual const long int * Range()
Function which returns sets the range.
Definition: Git.h:675
GitReal(const double def=0.0)
Simple constructor with a default value specified.
Definition: Git.h:585
virtual ~GitEnum()
Destructor.
Definition: Git.h:415
void Get(const SdsId &Id, const char *const Name, const int Position, StatusType *status, const char *Default=0, const int Flags=Git::Upper|Git::Abbrev)
Get the value of the object from an SDS struture.
Definition: Git.h:430
Allow abbreviations.
Definition: Git.h:367
virtual const double * Range()
Function which returns sets the range.
Definition: Git.h:579
A C++ Interface to the SDS Arg library.
Definition: arg.h:267
A C++ Interface to the handling SDS structures.
Definition: sds.h:709
The GitArgGet flags set up appropriately for C++.
Definition: Git.h:361
GitInt(const long int def=0)
Simple constructor with a default value specified.
Definition: Git.h:681
GitBool()
Simple constructor with a default value of false.
Definition: Git.h:487
virtual void Get(const SdsId &Id, const char *const Name, const int Position, StatusType *const status, const bool Default=false, const int Flags=(Git::Upper|Git::Abbrev))
Get the value of the object from an SDS struture.
Definition: Git.h:528
virtual ~GitReal()
Destructor.
Definition: Git.h:611
A class which reads Enumerated values from a SDS argument structures.
Definition: Git.h:389
const char * GitFalse
The string for FALSE.
Definition: Git.h:71
A class which reads real values from an SDS argument structure.
Definition: Git.h:566
Convert strings to upper case.
Definition: Git.h:364
A type used to store true and false string equivalent values.
Definition: Git.h:69
GitInt(const SdsId &Id, const char *const Name, const int Position, StatusType *const status, const long int Default=0, const int Flags=0)
Constructor with the initial value set from an SDS structure.
Definition: Git.h:694
virtual const GitLogStrType * Lookup()
Return a pointer to an array of enum strings equivalents.
Definition: Git.h:480
const char * GitTrue
The string for TRUE.
Definition: Git.h:70
GitReal(const SdsId &Id, const char *const Name, const int Position, StatusType *const status, const double Default=0.0, const int Flags=0)
Constructor with the initial value set from an SDS structure.
Definition: Git.h:598
virtual ~GitBool()
Destructor.
Definition: Git.h:513