OPERA  1.0
Open source echelle spectrograph reduction pipeline
libraries/operaParameterAccess.h File Reference
#include "operaError.h"
Include dependency graph for libraries/operaParameterAccess.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define MAXPARAMETERVALUELENGTH   4096

Functions

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.

Define Documentation

#define MAXPARAMETERVALUELENGTH   4096

Function Documentation

operaErrorCode operaParameterAccessAdd ( const char *  name,
const char *  value 
)

This function adds a name value listentry .

operaParameterAccessAdd(const char *name, const char *value)

Parameters:
nameis a char pointer to the name
valueis a char pointer to the value [list]
Returns:
operaErrorCode

Here is the call graph for this function:

operaErrorCode operaParameterAccessDelete ( const char *  name,
const char *  value 
)

This function deletes a value from a given name.

operaParameterAccessDelete(const char *name, const char *value)

Parameters:
nameis a char pointer to the name
valueis a char pointer to the value
Returns:
operaErrorCode

Here is the call graph for this function:

operaErrorCode operaParameterAccessGet ( const char *  name,
char **  value 
)

This function gets a value [list] for a given name.

operaErrorCode operaParameterAccessGet(const char *name, char *&value)

Note:
Note that this function allocates storage, which must be freed by the caller.
Parameters:
nameis a char pointer to the name
valueis a char pointer address to the value [list]
Returns:
operaErrorCode or errno
value = value of name or NULL if not known

Here is the call graph for this function:

operaErrorCode operaParameterAccessRemove ( const char *  name)

This function removes a name value entry.

operaParameterAccessRemove(const char *name)

Parameters:
nameis a char pointer to the name
Returns:
operaErrorCode

Here is the call graph for this function:

operaErrorCode operaParameterAccessSet ( const char *  name,
const char *  value 
)

This function sets a value for a given name.

operaParameterAccessSet(const char *name, const char *value)

Parameters:
nameis a char pointer to the name
valueis a char pointer address to the value
Returns:
operaErrorCode

Here is the call graph for this function:

operaErrorCode operaParameterAccessSetParamaterFilepath ( const char *  filepath)

This function sets the static filepath for a module calling this library.

operaErrorCode operaParameterAccessSetParamaterFilepath(const char *filepath)

Note:
Modules should really ony use the default except under extenuatin circumstances.
Parameters:
filepathis a char pointer to the filepath or NULL to set to default
Returns:
operaErrorCode