#include <Base.h>
Inheritance diagram for OSCAR::Base:

Public Methods | |
| Base (const String &name=String(), OSCARError &err=DUMMY_ERROR(noError)) | |
| Base (const Base &rhs) | |
| virtual | ~Base () |
| virtual Base & | operator= (const Base &rhs) |
| virtual const String & | GetName () const |
| virtual void | SetName (const String &name) |
| virtual const OSCARError & | GetError () const |
| virtual void | ClearError () const |
Static Public Methods | |
| bool | EnableErrorLogging (const String &errLogFileName=String("OSCARErrorLog.txt")) |
| bool | DisableErrorLogging () |
Protected Methods | |
| virtual void | setError (const OSCARError &err) const |
Protected Attributes | |
| String | name |
| OSCARError | error |
Static Protected Attributes | |
| TLS std::ofstream | errLogStream |
| TLS bool | errLogging |
|
||||||||||||
|
Constructor. This is the Constructor for an object of type Base. Use this to construct an Base object with a name and an OSCARError object. If no values are provided for the parameters, then the default values are used.
|
|
|
Copy Constructor. This is the Copy Constructor for an object of type Base. Use this to construct an Base object from an existing Base object.
|
|
|
Virtual Destructor. This is the Destructor for an object of type Base. |
|
|
Clear the error state. This method is used to clear the error state of an Base object to no error ("No Error").
|
|
|
Disable error logging for OSCAR applications. This method is used to disable error logging for all OSCAR applications. Error Logging is shared across multiple threads and can be enabled or disabled by any.
|
|
|
Enable error logging for OSCAR applications. This method is used to enable error logging for all OSCAR applications. This ensures that all errors flagged in any object of base type Base will be written to a file. This function can be called repeatedly with a different argument to write errors to different files. Error Logging is shared across multiple threads and can be enabled or disabled by any.
|
|
|
Get the error state. This method is used to get the error state which is set by certain operations, for e.g. object creation, member function calls, etc. Each time there is a failure in creating an object or calling a function, this function can be used to get the failure reason (error value). There will be a file set up with the error values and corresponding descriptions.
Reimplemented in OSCAR::PCRoboworksInterface. |
|
|
Get the name. This method is used to get a constant reference to the Name of the Base object.
|
|
|
Assignment Operator. This is the Assignment Operator for an object of type Base.
|
|
|
Set the error state. This method is used to set the error state of an Base object. The error value should be defined in a separate file. Refer to BaseError.h and BaseError.C. Some more specific errors can be defined in other files(e.g. HardwareError.h/C, FileError.h/C, etc.). This error state can be cleared by calling ClearError().
|
|
|
Set the name. This method is used to set the name of the Base object to the value of the parameter.
|
|
|
|
|
|
|
|
|
Reimplemented in OSCAR::ImpedanceFilter. |
|
|
|
| RRG Homepage | OSCAR Overview | OSCAR Tutorials | Simulations |