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
85#define GIT_M_ARG_UPPER 1
86#define GIT_M_ARG_LOWER 2
87#define GIT_M_ARG_KEEPERR 4
88#define GIT_M_ARG_ABBREV 8
89#define GIT_M_ARG_LASTBIT 0x10
90#define GIT_M_ARG_KEEPVALERR 0x20
92#define GIT_ARG_LMAX 20
95DPUBLIC DVOID GitActivate (
96 DCONSTV SdsIdType parsysid,
98DPUBLIC
int GitSimulation (
99 DCONSTV
char * DCONSTR exName,
101 GitSimulationType * DCONSTR simulation,
102 float * DCONSTR timebase,
103 StatusType * DCONSTR status);
105DPUBLIC DVOID GitParEnvGetS(
106 DCONSTV
char * DCONSTR pName,
107 DCONSTV
char * DCONSTR eName,
108 DCONSTV
char * DCONSTR badVal,
109 DCONSTV
char * DCONSTR defVal,
110 DCONSTV
int actValLen,
111 char * DCONSTR actVal,
112 StatusType * DCONSTR status);
113DPUBLIC
int GitEnvGetS(
118 DPUBLIC DVOID GitArgGetS (
119 DCONSTV SdsIdType
id,
121 DCONSTV
int position,
122 DCONSTV
char *values[],
123 DCONSTV
char *defVal,
125 DCONSTV
int actValLen ,
128 StatusType * status);
129DPUBLIC DVOID GitArgGetI (
130 DCONSTV SdsIdType
id,
132 DCONSTV
int position,
133 DCONSTV
long int range[],
134 DCONSTV
long int defVal,
139DPUBLIC DVOID GitArgGetD (
140 DCONSTV SdsIdType
id,
142 DCONSTV
int position,
143 DCONSTV
double range[],
144 DCONSTV
double defVal,
149DPUBLIC DVOID GitArgGetL (
150 DCONSTV SdsIdType
id,
152 DCONSTV
int position,
154 DCONSTV
long int defVal,
159DPUBLIC DVOID GitArgNamePos (
160 DCONSTV SdsIdType
id,
162 DCONSTV
int position,
166DPUBLIC DVOID GitArgNamePos2 (
167 DCONSTV SdsIdType
id,
169 DCONSTV
int position,
175DPUBLIC DVOID GitPathGetInit(
176 DCONSTV
char * DCONSTV name,
182 DitsActionRoutineType handler,
185DPUBLIC DVOID GitPathGetComp(
187 DVOIDP * client_data,
191DPUBLIC DVOID GitTpiInit (StatusType *status);
192DPUBLIC DVOID GitTpiPut (
196DPUBLIC DVOID GitTpiGet (
200DPUBLIC DVOID GitTpiDelete (
204DPUBLIC DVOID GitArgGetStruct (
205 DCONSTV SdsIdType
id,
207 DCONSTV
int position,
208 DCONSTV
char *defVal,
211 SdsIdType * actValue,
214DPUBLIC DVOID GitPutDelay(
217DPUBLIC DVOID GitPutDelayPar(
218 DCONSTV
char * parameter,
222DPUBLIC DVOID GitTimer(StatusType *status);
223DPUBLIC DVOID GitTimerArgExtract(DVOIDP ClientData,
const SdsIdType InArg,
224 SdsIdType * DCONSTR OutArg,
225 StatusType * DCONSTR status);
228typedef DVOID (*GitMonitorStartedType)(
int id,
231typedef DVOID (*GitMonitorChangedType)(
237typedef DVOID (*GitMonitorResponseType)(
241typedef DVOID (*GitTimerArgRoutineType)(
243 SdsIdType InArg, SdsIdType *OutArg,
251#if (!defined(GITMONITORC) || defined(DSTDARG_OK)) && defined(DPROTOTYPES_OK)
252 DPUBLIC DVOID GitMonitorStart(
254 GitMonitorStartedType Started,
255 GitMonitorChangedType Changed,
256 GitMonitorResponseType Completed,
257 GitMonitorResponseType Unexpected,
260 StatusType *status, ...);
261 DPUBLIC DVOID GitMonitorStartF(
264 GitMonitorStartedType Started,
265 GitMonitorChangedType Changed,
266 GitMonitorResponseType Completed,
267 GitMonitorResponseType Unexpected,
270 StatusType *status, ...);
271 DPUBLIC DVOID GitMonitorForward(
274 DCONSTV
char * action,
275 GitMonitorStartedType Started,
276 GitMonitorResponseType Completed,
277 GitMonitorResponseType Unexpected,
280 StatusType *status, ...);
282 DPUBLIC DVOID GitMonitorMessage(
285 GitMonitorMsgType type,
287 DitsTransIdType * transid,
288 StatusType *status,...);
290#elif !defined(GITMONITORC)
291 DPUBLIC DVOID GitMonitorStart();
292 DPUBLIC DVOID GitMonitorStartF();
293 DPUBLIC DVOID GitMonitorForward();
294 DPUBLIC DVOID GitMonitorChange();
302 char ActionName[DITS_C_NAMELEN];
303 GitTimerArgRoutineType ArgCreateRoutine;
308 DitsGsokMessageType _Message;
312 char TaskName[DITS_C_NAMELEN];
315 DitsPathInfoType Buffers;
321 IMP_AbsTime _StartTime;
349 Upper=GIT_M_ARG_UPPER,
350 Lower=GIT_M_ARG_LOWER,
351 KeepErr=GIT_M_ARG_KEEPERR,
352 Abbrev = GIT_M_ARG_ABBREV,
353 LastBit=GIT_M_ARG_LASTBIT,
358 KeepValErr=GIT_M_ARG_KEEPVALERR
400 virtual const char *
const *
Lookup() = 0;
420 const char *
const Name,
423 const char *Default=0,
428 GitArgGetS((SdsIdType)Id,Name,Position,(
const char **)Lookup(),
430 Flags,
sizeof(
string),
string,&index,status);
505 const char *
const Name,
507 StatusType *
const status,
508 const bool Default =
false,
512 Get(Id,Name,Position,status,Default,Flags);
533 const char *
const Name,
535 StatusType *
const status,
536 const bool Default =
false,
540 GitArgGetL((SdsIdType)Id,Name,Position,Lookup(),Default,
541 Flags,&actValue,status);
542 value = actValue ? true :
false;
546 operator int()
const {
547 return ((
int)(value));
551 operator bool()
const {
593 virtual const double *
Range() {
return 0; };
619 const char *
const Name,
621 StatusType *
const status,
622 const double Default = 0.0,
626 Get(Id,Name,Position,status,Default,Flags);
647 const char *
const Name,
649 StatusType *
const status,
650 const double Default = 0.0,
653 GitArgGetD((SdsIdType)Id,Name,Position,Range(),Default,
654 Flags,&value,status);
658 operator double()
const {
663 operator float()
const {
705 virtual const long int *
Range() {
return 0; };
730 const char *
const Name,
732 StatusType *
const status,
733 const long int Default = 0,
737 Get(Id,Name,Position,status,Default,Flags);
758 const char *
const Name,
760 StatusType *
const status,
761 const long int Default = 0,
764 GitArgGetI((SdsIdType)Id,Name,Position,Range(),Default,
765 Flags,&value,status);
768 operator long int()
const {
A C++ Interface to the SDS Arg library.
Definition arg.h:263
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:531
GitBool()
Simple constructor with a default value of false.
Definition Git.h:484
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:503
virtual const GitLogStrType * Lookup()
Return a pointer to an array of enum strings equivalents.
Definition Git.h:477
virtual ~GitBool()
Destructor.
Definition Git.h:516
A class which reads logical values from SDS argument structures.
Definition Git.h:460
virtual const char *const * Lookup()=0
Return a pointer to an array of enum strings equivalents.
virtual void SetValue(const unsigned int)=0
Set the value of the object.
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:419
virtual ~GitEnum()
Destructor.
Definition Git.h:404
A class which reads Enumerated values from a SDS argument structures.
Definition Git.h:378
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:756
virtual const long int * Range()
Function which returns sets the range.
Definition Git.h:705
virtual ~GitInt()
Destructor.
Definition Git.h:741
GitInt(const long int def=0)
Simple constructor with a default value specified.
Definition Git.h:711
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:728
A class which reads integer values from an SDS argument structure.
Definition Git.h:685
virtual const double * Range()
Method which returns sets the range.
Definition Git.h:593
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:617
GitReal(const double def=0.0)
Simple constructor with a default value specified.
Definition Git.h:599
virtual ~GitReal()
Destructor.
Definition Git.h:630
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:645
A class which reads real values from an SDS argument structure.
Definition Git.h:573
@ Abbrev
Allow abbreviations
Definition Git.h:352
@ Upper
Convert strings to upper case.
Definition Git.h:349
The GitArgGet flags set up appropriately for C++.
Definition Git.h:346
A C++ Interface to the handling SDS structures.
Definition sds.h:761
const char * GitFalse
The string for FALSE.
Definition Git.h:71
const char * GitTrue
The string for TRUE.
Definition Git.h:70
A type used to store true and false string equivalent values.
Definition Git.h:69