Description:
This class is basicly a map between APIDs and packets types for the Swift mission. The mapping information is read from a configuration file by the constructor.
The configuration file has one line per APID, with blank lines and lines beginning with "#" ignored. A line should contain the APID (in decimal), then whitespace, followed by the packet type. Any text following the packet type is ignored and may be used to decribe the packet contents.
Valid packet types are:
Data Fields | ||
public | static const int | UNKNOWN |
public | static const int | HEAD2 |
public | static const int | HEAD3 |
public | static const int | UVOT |
public | static const int | LDP |
public | static const int | CHECKSUM |
public | static const int | ACS |
public | static const int | TDRSS |
public | static const int | TRASH |
private | map<int,int> | types |
Constructors / Destructor | |
public | APIDentifier(const string& file)Constructor . |
public | ~APIDentifier() |
Methods | |||
public | virtual | int | type(int apid) |
private | virtual | int | parseTypeString(string word)Parse a string representation of a type and return its integer code . |
Operators |