Generic hardware access library
|
Reads a command sequence from a plain ASCII file. More...
#include <CommandSequenceASCIIReader.hh>
Public Member Functions | |
CommandSequenceASCIIReader (std::string fileName) throw (NoSuchFileException) | |
~CommandSequenceASCIIReader () | |
void | rescan () throw (NoSuchFileException) |
Resets the reader to the start. | |
Private Member Functions | |
void | scanInputFile () |
Private Attributes | |
std::string | fileName |
Reads a command sequence from a plain ASCII file.
The format of the file can be best explained with an example:
# comments are allowed if the line starts with a "#" write memStart 0x1111 write mem0 18 write mem1 0x11 # empty lines also are allowed
define $offset 0 define $count 0x0 label loop write memStart $count $offset add $count 1 add $offset 4 goto loop $offset <= 0x10 print Last value written was dec $count at offset hex $offset
Definition at line 43 of file CommandSequenceASCIIReader.hh.
HAL::CommandSequenceASCIIReader::CommandSequenceASCIIReader | ( | std::string | fileName | ) | throw (NoSuchFileException) |
Definition at line 7 of file CommandSequenceASCIIReader.cc.
Definition at line 13 of file CommandSequenceASCIIReader.cc.
void HAL::CommandSequenceASCIIReader::rescan | ( | ) | throw (NoSuchFileException) [virtual] |
Resets the reader to the start.
The Sequence can now be read another time.
Implements HAL::CommandSequenceReader.
Definition at line 16 of file CommandSequenceASCIIReader.cc.
void HAL::CommandSequenceASCIIReader::scanInputFile | ( | ) | [private] |
std::string HAL::CommandSequenceASCIIReader::fileName [private] |
Definition at line 51 of file CommandSequenceASCIIReader.hh.