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

Public Methods | |
| RobotData (OSCARError &err=DUMMY_ERROR(noError), const String &name=String("")) | |
| RobotData (const RobotData &rhs) | |
| virtual | ~RobotData () |
Protected Methods | |
| bool | open (const String &filename, std::ifstream &fileStream) |
| virtual bool | parseComments (std::ifstream &fileStream, const char commentMarker) |
| virtual int | getNoofEntries (std::ifstream &fileStream, const char commentMarker) |
| RobotData & | operator= (const RobotData &rhs) |
Protected Attributes | |
| bool | isOpen |
|
||||||||||||
|
Constructor. This is the Constructor for an object of type RobotData. Use this to construct an RobotData 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 RobotData. Use this to construct an RobotData object from an existing RobotData object.
|
|
|
Virtual Destructor. This is the Destructor for an object of type RobotData. |
|
||||||||||||
|
Counts the number of valid entries in a data file. This method is used to parse a file and count the number of valid entries in the file. This information can then be used to allocate the appropriate data structures to then store the data that will be read.
|
|
||||||||||||
|
Open a file for input. This method is used to open a file for input. Possible errors that might occur include a fileOpenError error.
|
|
|
Assignment Operator. This is the Assignment Operator for an object of type RobotData.
|
|
||||||||||||
|
Parses a data file and moves the file pointer to the next valid entry. This method is used to parse a data file and advance the file pointer to point to the next valid entry. It does that by skipping the comments, blank spaces, tabs, carriage returns and line feeds. Consecutive calls to this method can be used to read all the valid file entries.
|
|
|
|
| RRG Homepage | OSCAR Overview | OSCAR Tutorials | Simulations |