Ask a Question | Search PSRCHIVE: |
![]()
|
Public Types |
Public Member Functions |
Public Attributes |
Protected Member Functions |
Protected Attributes |
List of all members
Pulsar::Interpreter Class Reference Pulsar data processing command language interpreter. More...
Inherits CommandParser.
Detailed DescriptionPulsar data processing command language interpreter. The Interpreter class is a command language interpreter that provides access to PSRCHIVE data processing algorithms. The Interpreter maintains a stack and a named list (map) of Pulsar::Archive instances. Archives in the stack provide a convenient history mechanism, and Archives in the map are referenced by name, a single keyword. All operations perform on the top of the stack. The only exceptions to this rule are the load and unload methods, which may operate directly on named archives in the map. The contents of both the stack and the map can be modified by adding Archives from file, copying Archives or subsets of Archives from other Archives in memory and finally by deleting Archives from memory. At any stage, the top of the stack or any of the Archives in the map can be saved to disk. Commands that create copies of existing data (push, clone and extract) can accept the name of an Archive in the map as the first argument. The append command requires the name of the Archive in the map that is to be appended to the top of the stack. In all cases, the result of the operation affects the top of the stack. Member Function Documentation◆ response()
All methods should return via the response methods. Eventually, the Interpreter class might filter special arguments out of the list before passing the remainder along to the method. ◆ setup()
All methods should call this method to parse the arguments. Eventually, the Interpreter class might filter special arguments out of the list before passing the remainder along to the method. Referenced by setup(). ◆ system()
execute a shell command If the command fails, then status is set to CommandFailed References Error::get_message(), SystemCall::get_return_value(), SystemCall::run(), and SystemCall::set_throw(). ◆ test()
test a boolean expression If the test evaluates to false, then status is set to TestFailed The documentation for this class was generated from the following files:
Generated using doxygen 1.8.17
|