35#ifndef _SB_ENVIRONMENT_VARS_H
36#define _SB_ENVIRONMENT_VARS_H
38#include <Inventor/SbBase.h>
39#include <Inventor/SbDict.h>
40#include <Inventor/SbColor.h>
41#include <Inventor/SbVec.h>
43#include <Inventor/threads/SbThreadMutex.h>
1911 SoNONUNICODE
static const char*
getValue (
const char* name);
1980 SoNONUNICODE
static int getInt(
const char* name,
int defaultValue );
2004 SoNONUNICODE
static long getLong(
const char* name,
long defaultValue );
2028 SoNONUNICODE
static float getFloat(
const char* name,
float defaultValue );
2052 SoNONUNICODE
static double getDouble(
const char* name,
double defaultValue );
2197 SoNONUNICODE
static void setValue(
const char* name,
const char* value = NULL );
2232 SoNONUNICODE
static void setInt(
const char* name,
int value );
2246 SoNONUNICODE
static void setLong(
const char* name,
long value );
2260 SoNONUNICODE
static void setFloat(
const char* name,
float value );
2274 SoNONUNICODE
static void setDouble(
const char* name,
double value );
2357 SoNONUNICODE
static void readFile (
const char* filename);
2367 static SbDict* s_dictionary;
2369 static void initialize ();
2370 static SbString s_unspecifiedValue;
2371 static bool s_verbose_env;
2374 static void clean();
Class for smart character strings.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Portable mutex c...
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Manages Open Inv...
static const SbString & getString(const SbString &name, const SbString &defaultValue)
Returns the value of the specified environment variable in the Open Inventor environment.
static long getLong(const SbString &name, long defaultValue)
Returns the value of the specified environment variable in the Open Inventor environment,...
static const SbVec2s & getVec2s(const SbString &name, const SbVec2s &defaultValue)
Returns the value of the specified environment variable in the Open Inventor environment,...
static void setVec3f(const SbString &name, const SbVec3f &value)
Sets a variable that has an SbVec3f value in the Open Inventor environment.
static const SbString * getStringValue(const SbString &name)
Returns the value of the specified environment variable in the Open Inventor environment.
static SoNONUNICODE int getInt(const char *name, int defaultValue)
Returns the value of the specified environment variable in the Open Inventor environment,...
static void setInt(const SbString &name, int value)
Sets a variable that has an int value in the Open Inventor environment.
static void readFile(const SbString &filename)
Reads environment name-value pairs from the specified configuration file and adds them to the current...
static const SbColor & getColor(const SbString &name, const SbColor &defaultValue)
Returns the value of the specified environment variable in the Open Inventor environment,...
static SoNONUNICODE const char * getValue(const char *name)
Returns the value of the specified environment variable in the Open Inventor environment.
static SoNONUNICODE void setFloat(const char *name, float value)
Sets a variable that has a float value in the Open Inventor environment.
static SoNONUNICODE long getLong(const char *name, long defaultValue)
Returns the value of the specified environment variable in the Open Inventor environment,...
static void setVec2s(const SbString &name, const SbVec2s &value)
Sets a variable that has an SbVec2s value in the Open Inventor environment.
static SoNONUNICODE const SbVec2s & getVec2s(const char *name, const SbVec2s &defaultValue)
Returns the value of the specified environment variable in the Open Inventor environment,...
static void setColor(const SbString &name, const SbColor &value)
Sets a variable that has an SbColor value in the Open Inventor environment.
static void setFloat(const SbString &name, float value)
Sets a variable that has a float value in the Open Inventor environment.
static void setLong(const SbString &name, long value)
Sets a variable that has a long value in the Open Inventor environment.
static double getDouble(const SbString &name, double defaultValue)
Returns the value of the specified environment variable in the Open Inventor environment,...
static SoNONUNICODE void setLong(const char *name, long value)
Sets a variable that has a long value in the Open Inventor environment.
static SoNONUNICODE void readFile(const char *filename)
Reads environment name-value pairs from the specified configuration file and adds them to the current...
static SoNONUNICODE void setInt(const char *name, int value)
Sets a variable that has an int value in the Open Inventor environment.
static SoNONUNICODE const SbString & getString(const char *name, const SbString &defaultValue)
Returns the value of the specified environment variable in the Open Inventor environment.
static int getInt(const SbString &name, int defaultValue)
Returns the value of the specified environment variable in the Open Inventor environment,...
static SoNONUNICODE float getFloat(const char *name, float defaultValue)
Returns the value of the specified environment variable in the Open Inventor environment,...
static SbBool getBool(const SbString &name, SbBool defaultValue)
Returns the value of the specified environment variable in the Open Inventor environment,...
static SoNONUNICODE const SbVec3f & getVec3f(const char *name, const SbVec3f &defaultValue)
Returns the value of the specified environment variable in the Open Inventor environment,...
static SoNONUNICODE void setVec2s(const char *name, const SbVec2s &value)
Sets a variable that has an SbVec2s value in the Open Inventor environment.
static void setValue(const SbString &name, const SbString *value=NULL)
Sets a variable in the Open Inventor environment.
friend class SoPreferencesImpl
static SoNONUNICODE void setValue(const char *name, const char *value=NULL)
Sets a variable in the Open Inventor environment.
static float getFloat(const SbString &name, float defaultValue)
Returns the value of the specified environment variable in the Open Inventor environment,...
static SoNONUNICODE void setVec3f(const char *name, const SbVec3f &value)
Sets a variable that has an SbVec3f value in the Open Inventor environment.
static SoNONUNICODE void setColor(const char *name, const SbColor &value)
Sets a variable that has an SbColor value in the Open Inventor environment.
static const SbVec3f & getVec3f(const SbString &name, const SbVec3f &defaultValue)
Returns the value of the specified environment variable in the Open Inventor environment,...
static void setDouble(const SbString &name, double value)
Sets a variable that has a double value in the Open Inventor environment.
static SoNONUNICODE void setBool(const char *name, SbBool value)
Sets a variable that has a boolean value in the Open Inventor environment.
static void setString(const SbString &name, const SbString &value)
Sets a variable that has an SbString value in the Open Inventor environment.
static SoNONUNICODE void setString(const char *name, const SbString &value)
Sets a variable that has an SbString value in the Open Inventor environment.
static SoNONUNICODE void setDouble(const char *name, double value)
Sets a variable that has a double value in the Open Inventor environment.
static void setBool(const SbString &name, SbBool value)
Sets a variable that has a boolean value in the Open Inventor environment.
static SoNONUNICODE const SbColor & getColor(const char *name, const SbColor &defaultValue)
Returns the value of the specified environment variable in the Open Inventor environment,...
static SoNONUNICODE SbBool getBool(const char *name, SbBool defaultValue)
Returns the value of the specified environment variable in the Open Inventor environment,...
static SoNONUNICODE double getDouble(const char *name, double defaultValue)
Returns the value of the specified environment variable in the Open Inventor environment,...