Go to the source code of this file.
Data Structures | |
struct | GivenCommandLineParameters |
Defines | |
#define | GIVENCLP_VERSION "1.0.2" |
#define | GIVENCLP_DATE "29-Jan-2003" |
Typedefs | |
typedef GivenCommandLineParameters * | Given_CLP_Ptr |
A pointer to structure GivenCommandLineParameters is assigned the name Given_CLP_Ptr . | |
Functions | |
Given_CLP_Ptr | GivenClp_create (void) |
Creates a GivenCommandLineParameters structure. | |
void | GivenClp_destroy (Given_CLP_Ptr givenClpPtr) |
Destroys a GivenCommandLineParameters structure. | |
void | GivenClp_display (const Given_CLP_Ptr givenClpPtr, FILE *outputStream) |
Displays a GivenCommandLineParameters structure. | |
void | GivenClp_setOption (const Given_CLP_Ptr givenClpPtr, const int option, const int boolean_value) |
The option option of a GivenCommandLineParameters structure is set to boolean_value . | |
int | GivenClp_getOption (const Given_CLP_Ptr givenClpPtr, const int option) |
The current value of option option of a GivenCommandLineParameters structure is returned. |
This structure provides a way to store simulated boolean values (BOOLEAN_TRUE or BOOLEAN_FALSE) for all command line arguments. It is used to store the information whether a specific command line argument is given or not. All values are set to BOOLEAN_FALSE during the creation of the structure via GivenClp_create.
The structure is created with GivenClp_create, destroyed with GivenClp_destroy and displayed with GivenClp_display. With GivenClp_setOption and GivenClp_getOption the values of the individual members of the structure GivenCommandLineParameters could be set or gotten.
Description of the members:
oOptionGiven
- indicates whether the o
option is given at the command line
rOptionGiven
- indicates whether the r
option is given at the command line
01/09/2003 - Uli Fechner - v1.0.1 - .adjusted according to the needs of retroflux
29/01/2004 - Tina Grabowski - v1.0.2 - added the member
sOptionGiven; corresponding changes in GivenClp_create, GivenClp_display, GivenClp_setOption and GivenClp_getOption \code
Definition in file givenClp.c.
|
Definition at line 3 of file givenClp.c. Referenced by displayVersionInformation(). |
|
Definition at line 2 of file givenClp.c. Referenced by displayVersionInformation(). |
|
A pointer to structure GivenCommandLineParameters is assigned the name
Definition at line 42 of file givenClp.c. Referenced by GivenClp_create(), and parseClp(). |
|
Creates a GivenCommandLineParameters structure. The structure GivenCommandLineParameters is created. The memory of the structure is allocated automatically. The values of all members are set to BOOLEAN_FALSE.
Definition at line 68 of file givenClp.c. References BOOLEAN_FALSE, GivenCommandLineParameters::fOptionGiven, Given_CLP_Ptr, MemoryError, GivenCommandLineParameters::oOptionGiven, GivenCommandLineParameters::rOptionGiven, and GivenCommandLineParameters::sOptionGiven. Referenced by parseClp(). |
|
Destroys a GivenCommandLineParameters structure.
The structure GivenCommandLineParameters the pointer
Definition at line 91 of file givenClp.c. References AbortProgram. Referenced by parseClp(). |
|
Displays a GivenCommandLineParameters structure.
The structure GivenCommandLineParameters the pointer
Definition at line 115 of file givenClp.c. References GivenCommandLineParameters::fOptionGiven, GivenCommandLineParameters::oOptionGiven, GivenCommandLineParameters::rOptionGiven, and GivenCommandLineParameters::sOptionGiven. |
|
The current value of option
The return value
Definition at line 171 of file givenClp.c. References AbortProgram, GivenCommandLineParameters::fOptionGiven, GivenCommandLineParameters::oOptionGiven, GivenCommandLineParameters::rOptionGiven, and GivenCommandLineParameters::sOptionGiven. Referenced by parseClp(). |
|
The option
The parameter
Definition at line 135 of file givenClp.c. References AbortProgram, GivenCommandLineParameters::fOptionGiven, GivenCommandLineParameters::oOptionGiven, GivenCommandLineParameters::rOptionGiven, and GivenCommandLineParameters::sOptionGiven. Referenced by parseClp(). |