|
OPERA
1.0
Open source echelle spectrograph reduction pipeline
|
access the configuration file. More...
#include <stdio.h>#include <stdlib.h>#include <stdarg.h>#include <string.h>#include <sys/types.h>#include <regex.h>#include <limits.h>#include <errno.h>#include "operaError.h"#include "libraries/operaConfigurationAccess.h"
Namespaces | |
| namespace | operaConfigurationAccess |
Defines | |
| #define | OPERAERRRORCODESONLY |
| #define | PATH_MAX 1024 |
Functions | |
| static int | startsWith (const char *aString, const char *substring) |
| returns > 0 if astring startswith substring. | |
| operaErrorCode | operaConfigurationAccessSetConfigurationFilepath (const char *filepath) |
| This function sets the static filepath for a module calling this library. | |
| operaErrorCode | operaConfigurationAccessGet (const char *name, char **value) |
| This function gets a value [list] for a given name. | |
| operaErrorCode | operaConfigurationAccessSet (const char *name, const char *value) |
| This function sets a value for a given name. | |
| operaErrorCode | operaConfigurationAccessAdd (const char *name, const char *value) |
| This function adds a name value listentry . | |
| operaErrorCode | operaConfigurationAccessDelete (const char *name, const char *value) |
| This function deletes a value from a given name. | |
| operaErrorCode | operaConfigurationAccessRemove (const char *name) |
| This function removes a name value entry. | |
Variables | |
| static char | configurationfilename [PATH_MAX] |
| static FILE * | stream = NULL |
| const char * | configurationfilebasename = "/harness/Makefile.configuration" |
access the configuration file.
| #define OPERAERRRORCODESONLY |
| #define PATH_MAX 1024 |
| operaErrorCode operaConfigurationAccessAdd | ( | const char * | name, |
| const char * | value | ||
| ) |
This function adds a name value listentry .
operaConfigurationAccessAdd(const char *name, const char *value)
| name | is a char pointer to the name |
| value | is a char pointer to the value [list] |

| operaErrorCode operaConfigurationAccessDelete | ( | const char * | name, |
| const char * | value | ||
| ) |
This function deletes a value from a given name.
operaConfigurationAccessDelete(const char *name, const char *value)
| name | is a char pointer to the name |
| value | is a char pointer to the value |

| operaErrorCode operaConfigurationAccessGet | ( | const char * | name, |
| char ** | value | ||
| ) |
This function gets a value [list] for a given name.
operaErrorCode operaConfigurationAccessGet(const char *name, char *&value)
| name | is a char pointer to the name |
| value | is a char pointer address to the value [list] |

| operaErrorCode operaConfigurationAccessRemove | ( | const char * | name | ) |
This function removes a name value entry.
operaConfigurationAccessRemove(const char *name)
| name | is a char pointer to the name |

| operaErrorCode operaConfigurationAccessSet | ( | const char * | name, |
| const char * | value | ||
| ) |
This function sets a value for a given name.
operaConfigurationAccessSet(const char *name, const char *value)
| name | is a char pointer to the name |
| value | is a char pointer address to the value |

| operaErrorCode operaConfigurationAccessSetConfigurationFilepath | ( | const char * | filepath | ) |
This function sets the static filepath for a module calling this library.
operaErrorCode operaConfigurationAccessSetParamaterFilepath(const char *filepath)
| filepath | is a char pointer to the filepath or NULL to set to default |
| static int startsWith | ( | const char * | aString, |
| const char * | substring | ||
| ) | [static] |
returns > 0 if astring startswith substring.
startsWith
| const char* configurationfilebasename = "/harness/Makefile.configuration" |
char configurationfilename[PATH_MAX] [static] |
FILE* stream = NULL [static] |