Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

DC_SampleR1Database Class Reference

#include <DC_SampleR1Database.h>

Inheritance diagram for DC_SampleR1Database:

ParameterDatabase CC_RootObject List of all members.

Detailed Description

A sample database with the lowest level of robustness against illegal accesses to database parameters.

This database contains real-typed gains.

The code for this class was automatically generated by an XSL program using as input the XML-based application model. This class offers a pointer-oriented and robust implementation of the ParameterDatabase interface. The price paid for the safety offered by this implementation is a certain inefficiency both in terms of memory overhead and run-time when accessing a parameter.

An indexed database maintains internal data structures that, for each parameter in the database, store the following information:<ul> The pointer to the operational version of the parameter The syntactical type of the parameter These internal data structures are set up and initialized by the indexed database component during its configuration procedure. The parameter type information allows the component to perform run-time cheks on the access to the parameter values. Checks are performed on the legality of the parameter identifier and on the use of the correct accessor method for a parameter (e.g. the value of a parameter of type float should only be accessed with method getParameterFloat).

The memory overhead caused by this class is minimized when the parameter identifiers begin with a zero and when there are no "gaps" in the parameter identifier.

The default and operational tables are not defined by this class. This class loads the tables using methods setDefaultTable and setOperationalTable.

The configuration procedure for an instance of this class is as follows:

Note that an include file (DC_SampleR1Database_inc.h) is also automatically generated that defines symbolic names to access the parameters in the database.

The getter and setter methods are implemented to be fast and efficient but this makes them vulnerable to alignement problems on some processors. For instance, the setter methods for integer-valued parameters is implemened as follows:

    void DC_BasicDatabase::setParameter(TD_DatabaseId parId, int newValue) {
         *( (int*)(pPar[parId]) ) = newValue;
    }
On some processors, the assignment will fail if location pPar[parId] does not correspond to a longword (4 bytes) boundary. There is no check to ensure that this is the case and it is the responsibility of the user to ensure that the database map is such as to avoid this type of problems. The database map is defined in the XML document that is processed by the generator meta-component that generates the database implementation. A more robust (but possibly slower) implementation might use the memcpy library function to transfer the values of the data between the database locations and the method variables.
Author:
Automatically Generated
Version:
1.0

Definition at line 77 of file DC_SampleR1Database.h.

Public Member Functions

 DC_SampleR1Database ()
 Instantiate a database component The default and operational table arrays are initialized to illegal values to signify that the component is not yet configured.

virtual void reset ()
 Copy the default table array onto the operational table array and set up the internal data structures that describe the position of the parameters in the database and their type.

void setDefaultTable (char *pDefTable)
 Load the default table.

void setOperationalTable (char *pOperTable)
 Load the operational table.

virtual void setParameter (TD_DatabaseId parId, int newValue)
 Set the current value of a parameter interpreted as a parameter of type int.

virtual void setParameter (TD_DatabaseId parId, unsigned int newValue)
 Set the current value of a parameter interpreted as a parameter of type unsigned int.

virtual void setParameter (TD_DatabaseId parId, short newValue)
 Set the current value of a parameter interpreted as a parameter of type short.

virtual void setParameter (TD_DatabaseId parId, unsigned short newValue)
 Set the current value of a parameter interpreted as a parameter of type unsigned short.

virtual void setParameter (TD_DatabaseId parId, char newValue)
 Set the current value of a parameter interpreted as a parameter of type char.

virtual void setParameter (TD_DatabaseId parId, unsigned char newValue)
 Set the current value of a parameter interpreted as a parameter of type unsigned char.

virtual void setParameter (TD_DatabaseId parId, bool newValue)
 Set the current value of a parameter interpreted as a parameter of type bool.

virtual void setParameter (TD_DatabaseId parId, float newValue)
 Set the current value of a parameter interpreted as a parameter of type float.

virtual void setParameter (TD_DatabaseId parId, double newValue)
 Set the current value of a parameter interpreted as a parameter of type double.

virtual int getParameterInt (TD_DatabaseId parId)
 Get the current value of a parameter interpreted as a parameter of type int.

virtual unsigned int getParameterUnsignedInt (TD_DatabaseId parId)
 Get the current value of a parameter interpreted as a parameter of type unsigned int.

virtual short getParameterShort (TD_DatabaseId parId)
 Get the current value of a parameter interpreted as a parameter of type short.

virtual unsigned short getParameterUnsignedShort (TD_DatabaseId parId)
 Get the current value of a parameter interpreted as a parameter of type unsigned short.

virtual char getParameterChar (TD_DatabaseId parId)
 Get the current value of a parameter interpreted as a parameter of type char.

virtual unsigned char getParameterUnsignedChar (TD_DatabaseId parId)
 Get the current value of a parameter interpreted as a parameter of type unsigned char.

virtual bool getParameterBool (TD_DatabaseId parId)
 Get the current value of a parameter interpreted as a parameter of type bool.

virtual float getParameterFloat (TD_DatabaseId parId)
 Get the current value of a parameter interpreted as a parameter of type float.

virtual double getParameterDouble (TD_DatabaseId parId)
 Get the current value of a parameter interpreted as a parameter of type double.

virtual int * getParameterPointerInt (TD_DatabaseId parId)
 Get the pointer to the operational table copy of the parameter interpreted as a parameter of type int.

virtual unsigned int * getParameterPointerUnsignedInt (TD_DatabaseId parId)
 Get the pointer to the operational table copy of the parameter interpreted as a parameter of type unsigned int.

virtual short * getParameterPointerShort (TD_DatabaseId parId)
 Get the pointer to the operational table copy of the parameter interpreted as a parameter of type short.

virtual unsigned short * getParameterPointerUnsignedShort (TD_DatabaseId parId)
 Get the pointer to the operational table copy of the parameter interpreted as a parameter of type unsigned short.

virtual char * getParameterPointerChar (TD_DatabaseId parId)
 Get the pointer to the operational table copy of the parameter interpreted as a parameter of type char.

virtual unsigned char * getParameterPointerUnsignedChar (TD_DatabaseId parId)
 Get the pointer to the operational table copy of the parameter interpreted as a parameter of type unsigned char.

virtual bool * getParameterPointerBool (TD_DatabaseId parId)
 Get the pointer to the operational table copy of the parameter interpreted as a parameter of type bool.

virtual float * getParameterPointerFloat (TD_DatabaseId parId)
 Get the pointer to the operational table copy of the parameter interpreted as a parameter of type float.

virtual double * getParameterPointerDouble (TD_DatabaseId parId)
 Get the pointer to the operational table copy of the parameter interpreted as a parameter of type double.

virtual bool isObjectConfigured ()
 Perform a class-specific configuration check on a basic database object: verify that the default and operational tables have been loaded, that method reset has been called, and that the table length is greater than zero.


Constructor & Destructor Documentation

DC_SampleR1Database::DC_SampleR1Database  ) 
 

Instantiate a database component The default and operational table arrays are initialized to illegal values to signify that the component is not yet configured.

values. The table and length and the class identifier are set.

Definition at line 28 of file DC_SampleR1Database.cpp.


Member Function Documentation

bool DC_SampleR1Database::getParameterBool TD_DatabaseId  parId  )  [virtual]
 

Get the current value of a parameter interpreted as a parameter of type bool.

Run-time checks are performed on the legality of the parameter identifier and on the correctness of the parameter type (i.e. it is verified that the parameter being accessed is internally recorded as a parameter of type bool). Failure of the checks results in the generation of an assert error. If assertions are disabled, the checks are ineffective.

Parameters:
parId the identifier of the parameter to be set
Returns:
the current value of the parameter

Implements ParameterDatabase.

Definition at line 188 of file DC_SampleR1Database.cpp.

char DC_SampleR1Database::getParameterChar TD_DatabaseId  parId  )  [virtual]
 

Get the current value of a parameter interpreted as a parameter of type char.

Run-time checks are performed on the legality of the parameter identifier and on the correctness of the parameter type (i.e. it is verified that the parameter being accessed is internally recorded as a parameter of type char). Failure of the checks results in the generation of an assert error. If assertions are disabled, the checks are ineffective.

Parameters:
parId the identifier of the parameter to be set
Returns:
the current value of the parameter

Implements ParameterDatabase.

Definition at line 176 of file DC_SampleR1Database.cpp.

double DC_SampleR1Database::getParameterDouble TD_DatabaseId  parId  )  [virtual]
 

Get the current value of a parameter interpreted as a parameter of type double.

Run-time checks are performed on the legality of the parameter identifier and on the correctness of the parameter type (i.e. it is verified that the parameter being accessed is internally recorded as a parameter of type double). Failure of the checks results in the generation of an assert error. If assertions are disabled, the checks are ineffective.

Parameters:
parId the identifier of the parameter to be set
Returns:
the current value of the parameter

Implements ParameterDatabase.

Definition at line 200 of file DC_SampleR1Database.cpp.

float DC_SampleR1Database::getParameterFloat TD_DatabaseId  parId  )  [virtual]
 

Get the current value of a parameter interpreted as a parameter of type float.

Run-time checks are performed on the legality of the parameter identifier and on the correctness of the parameter type (i.e. it is verified that the parameter being accessed is internally recorded as a parameter of type float). Failure of the checks results in the generation of an assert error. If assertions are disabled, the checks are ineffective.

Parameters:
parId the identifier of the parameter to be set
Returns:
the current value of the parameter

Implements ParameterDatabase.

Definition at line 194 of file DC_SampleR1Database.cpp.

int DC_SampleR1Database::getParameterInt TD_DatabaseId  parId  )  [virtual]
 

Get the current value of a parameter interpreted as a parameter of type int.

Run-time checks are performed on the legality of the parameter identifier and on the correctness of the parameter type (i.e. it is verified that the parameter being accessed is internally recorded as a parameter of type int). Failure of the checks results in the generation of an assert error. If assertions are disabled, the checks are ineffective.

Parameters:
parId the identifier of the parameter to be set
Returns:
the current value of the parameter

Implements ParameterDatabase.

Definition at line 152 of file DC_SampleR1Database.cpp.

bool * DC_SampleR1Database::getParameterPointerBool TD_DatabaseId  parId  )  [virtual]
 

Get the pointer to the operational table copy of the parameter interpreted as a parameter of type bool.

Run-time checks are performed on the legality of the parameter identifier and on the correctness of the parameter type (i.e. it is verified that the parameter being accessed is internally recorded as a parameter of type bool). Failure of the checks results in the generation of an assert error. If assertions are disabled, the checks are ineffective.

Parameters:
parId the identifier of the parameter to be set
Returns:
the pointer to the parameter in the operational database

Implements ParameterDatabase.

Definition at line 242 of file DC_SampleR1Database.cpp.

char * DC_SampleR1Database::getParameterPointerChar TD_DatabaseId  parId  )  [virtual]
 

Get the pointer to the operational table copy of the parameter interpreted as a parameter of type char.

Run-time checks are performed on the legality of the parameter identifier and on the correctness of the parameter type (i.e. it is verified that the parameter being accessed is internally recorded as a parameter of type char). Failure of the checks results in the generation of an assert error. If assertions are disabled, the checks are ineffective.

Parameters:
parId the identifier of the parameter to be set
Returns:
the pointer to the parameter in the operational database

Implements ParameterDatabase.

Definition at line 230 of file DC_SampleR1Database.cpp.

double * DC_SampleR1Database::getParameterPointerDouble TD_DatabaseId  parId  )  [virtual]
 

Get the pointer to the operational table copy of the parameter interpreted as a parameter of type double.

Run-time checks are performed on the legality of the parameter identifier and on the correctness of the parameter type (i.e. it is verified that the parameter being accessed is internally recorded as a parameter of type double). Failure of the checks results in the generation of an assert error. If assertions are disabled, the checks are ineffective.

Parameters:
parId the identifier of the parameter to be set
Returns:
the pointer to the parameter in the operational database

Implements ParameterDatabase.

Definition at line 254 of file DC_SampleR1Database.cpp.

float * DC_SampleR1Database::getParameterPointerFloat TD_DatabaseId  parId  )  [virtual]
 

Get the pointer to the operational table copy of the parameter interpreted as a parameter of type float.

Run-time checks are performed on the legality of the parameter identifier and on the correctness of the parameter type (i.e. it is verified that the parameter being accessed is internally recorded as a parameter of type float). Failure of the checks results in the generation of an assert error. If assertions are disabled, the checks are ineffective.

Parameters:
parId the identifier of the parameter to be set
Returns:
the pointer to the parameter in the operational database

Implements ParameterDatabase.

Definition at line 248 of file DC_SampleR1Database.cpp.

int * DC_SampleR1Database::getParameterPointerInt TD_DatabaseId  parId  )  [virtual]
 

Get the pointer to the operational table copy of the parameter interpreted as a parameter of type int.

Run-time checks are performed on the legality of the parameter identifier and on the correctness of the parameter type (i.e. it is verified that the parameter being accessed is internally recorded as a parameter of type int). Failure of the checks results in the generation of an assert error. If assertions are disabled, the checks are ineffective.

Parameters:
parId the identifier of the parameter to be set
Returns:
the pointer to the parameter in the operational database

Implements ParameterDatabase.

Definition at line 206 of file DC_SampleR1Database.cpp.

short * DC_SampleR1Database::getParameterPointerShort TD_DatabaseId  parId  )  [virtual]
 

Get the pointer to the operational table copy of the parameter interpreted as a parameter of type short.

Run-time checks are performed on the legality of the parameter identifier and on the correctness of the parameter type (i.e. it is verified that the parameter being accessed is internally recorded as a parameter of type short). Failure of the checks results in the generation of an assert error. If assertions are disabled, the checks are ineffective.

Parameters:
parId the identifier of the parameter to be set
Returns:
the pointer to the parameter in the operational database

Implements ParameterDatabase.

Definition at line 218 of file DC_SampleR1Database.cpp.

unsigned char * DC_SampleR1Database::getParameterPointerUnsignedChar TD_DatabaseId  parId  )  [virtual]
 

Get the pointer to the operational table copy of the parameter interpreted as a parameter of type unsigned char.

Run-time checks are performed on the legality of the parameter identifier and on the correctness of the parameter type (i.e. it is verified that the parameter being accessed is internally recorded as a parameter of type unsigned char). Failure of the checks results in the generation of an assert error. If assertions are disabled, the checks are ineffective.

Parameters:
parId the identifier of the parameter to be set
Returns:
the pointer to the parameter in the operational database

Implements ParameterDatabase.

Definition at line 236 of file DC_SampleR1Database.cpp.

unsigned int * DC_SampleR1Database::getParameterPointerUnsignedInt TD_DatabaseId  parId  )  [virtual]
 

Get the pointer to the operational table copy of the parameter interpreted as a parameter of type unsigned int.

Run-time checks are performed on the legality of the parameter identifier and on the correctness of the parameter type (i.e. it is verified that the parameter being accessed is internally recorded as a parameter of type unsigned int). Failure of the checks results in the generation of an assert error. If assertions are disabled, the checks are ineffective.

Parameters:
parId the identifier of the parameter to be set
Returns:
the pointer to the parameter in the operational database

Implements ParameterDatabase.

Definition at line 212 of file DC_SampleR1Database.cpp.

unsigned short * DC_SampleR1Database::getParameterPointerUnsignedShort TD_DatabaseId  parId  )  [virtual]
 

Get the pointer to the operational table copy of the parameter interpreted as a parameter of type unsigned short.

Run-time checks are performed on the legality of the parameter identifier and on the correctness of the parameter type (i.e. it is verified that the parameter being accessed is internally recorded as a parameter of type unsigned short). Failure of the checks results in the generation of an assert error. If assertions are disabled, the checks are ineffective.

Parameters:
parId the identifier of the parameter to be set
Returns:
the pointer to the parameter in the operational database

Implements ParameterDatabase.

Definition at line 224 of file DC_SampleR1Database.cpp.

short DC_SampleR1Database::getParameterShort TD_DatabaseId  parId  )  [virtual]
 

Get the current value of a parameter interpreted as a parameter of type short.

Run-time checks are performed on the legality of the parameter identifier and on the correctness of the parameter type (i.e. it is verified that the parameter being accessed is internally recorded as a parameter of type short). Failure of the checks results in the generation of an assert error. If assertions are disabled, the checks are ineffective.

Parameters:
parId the identifier of the parameter to be set
Returns:
the current value of the parameter

Implements ParameterDatabase.

Definition at line 164 of file DC_SampleR1Database.cpp.

unsigned char DC_SampleR1Database::getParameterUnsignedChar TD_DatabaseId  parId  )  [virtual]
 

Get the current value of a parameter interpreted as a parameter of type unsigned char.

Run-time checks are performed on the legality of the parameter identifier and on the correctness of the parameter type (i.e. it is verified that the parameter being accessed is internally recorded as a parameter of type unsigned char). Failure of the checks results in the generation of an assert error. If assertions are disabled, the checks are ineffective.

Parameters:
parId the identifier of the parameter to be set
Returns:
the current value of the parameter

Implements ParameterDatabase.

Definition at line 182 of file DC_SampleR1Database.cpp.

unsigned int DC_SampleR1Database::getParameterUnsignedInt TD_DatabaseId  parId  )  [virtual]
 

Get the current value of a parameter interpreted as a parameter of type unsigned int.

Run-time checks are performed on the legality of the parameter identifier and on the correctness of the parameter type (i.e. it is verified that the parameter being accessed is internally recorded as a parameter of type unsigned int). Failure of the checks results in the generation of an assert error. If assertions are disabled, the checks are ineffective.

Parameters:
parId the identifier of the parameter to be set
Returns:
the current value of the parameter

Implements ParameterDatabase.

Definition at line 158 of file DC_SampleR1Database.cpp.

unsigned short DC_SampleR1Database::getParameterUnsignedShort TD_DatabaseId  parId  )  [virtual]
 

Get the current value of a parameter interpreted as a parameter of type unsigned short.

Run-time checks are performed on the legality of the parameter identifier and on the correctness of the parameter type (i.e. it is verified that the parameter being accessed is internally recorded as a parameter of type unsigned short). Failure of the checks results in the generation of an assert error. If assertions are disabled, the checks are ineffective.

Parameters:
parId the identifier of the parameter to be set
Returns:
the current value of the parameter

Implements ParameterDatabase.

Definition at line 170 of file DC_SampleR1Database.cpp.

bool DC_SampleR1Database::isObjectConfigured  )  [virtual]
 

Perform a class-specific configuration check on a basic database object: verify that the default and operational tables have been loaded, that method reset has been called, and that the table length is greater than zero.

See also:
reset
Returns:
true if the database object is configured, false otherwise

Reimplemented from CC_RootObject.

Definition at line 75 of file DC_SampleR1Database.cpp.

void DC_SampleR1Database::reset  )  [virtual]
 

Copy the default table array onto the operational table array and set up the internal data structures that describe the position of the parameters in the database and their type.

An indexed database component maintains two internal data structures that describe how the database is organized:

  • The parameter pointer table pPar: pPar[i] holds the pointer to the database parameter with parameter identifier i. The operational version of the database is used.
  • The parameter type table parType: parType[i] holds an integer that encodes the type of the database parameter with parameter identifier i.
The initialization of these two tables is hardcoded in this method. The information for generating the code comes from the XML file which describes the parameter database and which is used as input for generating the code for this class.

Implements ParameterDatabase.

Definition at line 46 of file DC_SampleR1Database.cpp.

void DC_SampleR1Database::setDefaultTable char *  pDefTable  ) 
 

Load the default table.

This method assumes that the default table has been defined and initialized by the caller. The method does not perform any action on the table. It simply loads its address and will use it for accessing the table entries.

This is an initialization method.

Parameters:
pDefTable the starting address of the default table

Definition at line 65 of file DC_SampleR1Database.cpp.

void DC_SampleR1Database::setOperationalTable char *  pOperTable  ) 
 

Load the operational table.

This method assumes that the operational table has been defined and initialized by the caller. The method does not perform any action on the table. It simply loads its address and will use it for accessing the table entries.

This is an initialization method.

Parameters:
pOperTable the starting address of the operational table

Definition at line 70 of file DC_SampleR1Database.cpp.

void DC_SampleR1Database::setParameter TD_DatabaseId  parId,
double  newValue
[virtual]
 

Set the current value of a parameter interpreted as a parameter of type double.

Run-time checks are performed on the legality of the parameter identifier and on the correctness of the parameter type (i.e. it is verified that the parameter being accessed is internally recorded as a parameter of type double). Failure of the checks results in the generation of an assert error. If assertions are disabled, the checks are ineffective.

Parameters:
parId the identifier of the parameter to be set
newValue the new current value of the parameter

Implements ParameterDatabase.

Definition at line 146 of file DC_SampleR1Database.cpp.

void DC_SampleR1Database::setParameter TD_DatabaseId  parId,
float  newValue
[virtual]
 

Set the current value of a parameter interpreted as a parameter of type float.

Run-time checks are performed on the legality of the parameter identifier and on the correctness of the parameter type (i.e. it is verified that the parameter being accessed is internally recorded as a parameter of type float). Failure of the checks results in the generation of an assert error. If assertions are disabled, the checks are ineffective.

Parameters:
parId the identifier of the parameter to be set
newValue the new current value of the parameter

Implements ParameterDatabase.

Definition at line 139 of file DC_SampleR1Database.cpp.

void DC_SampleR1Database::setParameter TD_DatabaseId  parId,
bool  newValue
[virtual]
 

Set the current value of a parameter interpreted as a parameter of type bool.

Run-time checks are performed on the legality of the parameter identifier and on the correctness of the parameter type (i.e. it is verified that the parameter being accessed is internally recorded as a parameter of type bool). Failure of the checks results in the generation of an assert error. If assertions are disabled, the checks are ineffective.

Parameters:
parId the identifier of the parameter to be set
newValue the new current value of the parameter

Implements ParameterDatabase.

Definition at line 132 of file DC_SampleR1Database.cpp.

void DC_SampleR1Database::setParameter TD_DatabaseId  parId,
unsigned char  newValue
[virtual]
 

Set the current value of a parameter interpreted as a parameter of type unsigned char.

Run-time checks are performed on the legality of the parameter identifier and on the correctness of the parameter type (i.e. it is verified that the parameter being accessed is internally recorded as a parameter of type unsigned char). Failure of the checks results in the generation of an assert error. If assertions are disabled, the checks are ineffective.

Parameters:
parId the identifier of the parameter to be set
newValue the new current value of the parameter

Implements ParameterDatabase.

Definition at line 125 of file DC_SampleR1Database.cpp.

void DC_SampleR1Database::setParameter TD_DatabaseId  parId,
char  newValue
[virtual]
 

Set the current value of a parameter interpreted as a parameter of type char.

Run-time checks are performed on the legality of the parameter identifier and on the correctness of the parameter type (i.e. it is verified that the parameter being accessed is internally recorded as a parameter of type char). Failure of the checks results in the generation of an assert error. If assertions are disabled, the checks are ineffective.

Parameters:
parId the identifier of the parameter to be set
newValue the new current value of the parameter

Implements ParameterDatabase.

Definition at line 118 of file DC_SampleR1Database.cpp.

void DC_SampleR1Database::setParameter TD_DatabaseId  parId,
unsigned short  newValue
[virtual]
 

Set the current value of a parameter interpreted as a parameter of type unsigned short.

Run-time checks are performed on the legality of the parameter identifier and on the correctness of the parameter type (i.e. it is verified that the parameter being accessed is internally recorded as a parameter of type unsigned short). Failure of the checks results in the generation of an assert error. If assertions are disabled, the checks are ineffective.

Parameters:
parId the identifier of the parameter to be set
newValue the new current value of the parameter

Implements ParameterDatabase.

Definition at line 111 of file DC_SampleR1Database.cpp.

void DC_SampleR1Database::setParameter TD_DatabaseId  parId,
short  newValue
[virtual]
 

Set the current value of a parameter interpreted as a parameter of type short.

Run-time checks are performed on the legality of the parameter identifier and on the correctness of the parameter type (i.e. it is verified that the parameter being accessed is internally recorded as a parameter of type short). Failure of the checks results in the generation of an assert error. If assertions are disabled, the checks are ineffective.

Parameters:
parId the identifier of the parameter to be set
newValue the new current value of the parameter

Implements ParameterDatabase.

Definition at line 104 of file DC_SampleR1Database.cpp.

void DC_SampleR1Database::setParameter TD_DatabaseId  parId,
unsigned int  newValue
[virtual]
 

Set the current value of a parameter interpreted as a parameter of type unsigned int.

Run-time checks are performed on the legality of the parameter identifier and on the correctness of the parameter type (i.e. it is verified that the parameter being accessed is internally recorded as a parameter of type unsigned int). Failure of the checks results in the generation of an assert error. If assertions are disabled, the checks are ineffective.

Parameters:
parId the identifier of the parameter to be set
newValue the new current value of the parameter

Implements ParameterDatabase.

Definition at line 97 of file DC_SampleR1Database.cpp.

void DC_SampleR1Database::setParameter TD_DatabaseId  parId,
int  newValue
[virtual]
 

Set the current value of a parameter interpreted as a parameter of type int.

Run-time checks are performed on the legality of the parameter identifier and on the correctness of the parameter type (i.e. it is verified that the parameter being accessed is internally recorded as a parameter of type int). Failure of the checks results in the generation of an assert error. If assertions are disabled, the checks are ineffective.

Parameters:
parId the identifier of the parameter to be set
newValue the new current value of the parameter

Implements ParameterDatabase.

Definition at line 90 of file DC_SampleR1Database.cpp.


The documentation for this class was generated from the following files:
Copyright 2003 P&P Software GmbH - All Rights Reserved