OPERA
1.0
Open source echelle spectrograph reduction pipeline
|
access the parameter 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/operaParameterAccess.h"
Namespaces | |
namespace | operaParameterAccess |
Defines | |
#define | OPERAERRRORCODESONLY |
access the parameter file. | |
#define | PATH_MAX 1024 |
Functions | |
static int | startsWith (const char *aString, const char *substring) |
operaErrorCode | operaParameterAccessSetParamaterFilepath (const char *filepath) |
This function sets the static filepath for a module calling this library. | |
operaErrorCode | operaParameterAccessGet (const char *name, char **value) |
This function gets a value [list] for a given name. | |
operaErrorCode | operaParameterAccessSet (const char *name, const char *value) |
This function sets a value for a given name. | |
operaErrorCode | operaParameterAccessAdd (const char *name, const char *value) |
This function adds a name value listentry . | |
operaErrorCode | operaParameterAccessDelete (const char *name, const char *value) |
This function deletes a value from a given name. | |
operaErrorCode | operaParameterAccessRemove (const char *name) |
This function removes a name value entry. | |
Variables | |
static char | parameterfilename [PATH_MAX] |
static FILE * | stream = NULL |
static const char * | parameterfilebasename = "/harness/Makefile.parameters" |
access the parameter file
#define PATH_MAX 1024 |
operaErrorCode operaParameterAccessAdd | ( | const char * | name, |
const char * | value | ||
) |
This function adds a name value listentry .
operaParameterAccessAdd(const char *name, const char *value)
name | is a char pointer to the name |
value | is a char pointer to the value [list] |
operaErrorCode operaParameterAccessDelete | ( | const char * | name, |
const char * | value | ||
) |
This function deletes a value from a given name.
operaParameterAccessDelete(const char *name, const char *value)
name | is a char pointer to the name |
value | is a char pointer to the value |
operaErrorCode operaParameterAccessGet | ( | const char * | name, |
char ** | value | ||
) |
This function gets a value [list] for a given name.
operaErrorCode operaParameterAccessGet(const char *name, char *&value)
name | is a char pointer to the name |
value | is a char pointer address to the value [list] |
operaErrorCode operaParameterAccessRemove | ( | const char * | name | ) |
This function removes a name value entry.
operaParameterAccessRemove(const char *name)
name | is a char pointer to the name |
operaErrorCode operaParameterAccessSet | ( | const char * | name, |
const char * | value | ||
) |
This function sets a value for a given name.
operaParameterAccessSet(const char *name, const char *value)
name | is a char pointer to the name |
value | is a char pointer address to the value |
operaErrorCode operaParameterAccessSetParamaterFilepath | ( | const char * | filepath | ) |
This function sets the static filepath for a module calling this library.
operaErrorCode operaParameterAccessSetParamaterFilepath(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] |
const char* parameterfilebasename = "/harness/Makefile.parameters" [static] |
char parameterfilename[PATH_MAX] [static] |
FILE* stream = NULL [static] |