|
|
unsigned |
|
CharLabelToNumber (NxsString s) |
|
|
|
|
The code here is identical to the base class version (simply returns 0), so the code here should either be modified or this derived version eliminated altogether. Under what circumstances would you need to modify the default code, you ask? This function should be modified to something meaningful if this derived class needs to construct and run a NxsSetReader object to read a set involving characters. The NxsSetReader object may need to use this function to look up a character label encountered in the set. A class that overrides this method should return the character index in the range [1..nchar]; i.e., add one to the 0-offset index. |
|
|
|
void |
|
HandleEndblock (NxsToken &token) |
|
|
|
|
Called when the END or ENDBLOCK command needs to be parsed from within the EMPTY block. Basically just checks to make sure the next token in the data file is a semicolon. |
|
C |
|
|
|
NxsEmptyBlock () |
|
|
|
|
Sets the base class data member id to the name of the block (i.e. "EMPTY") in NEXUS data files. |
|
|
V |
|
void |
|
Read (NxsToken &token) |
|
|
|
|
This function provides the ability to read everything following the block name (which is read by the NxsReader object) to the END or ENDBLOCK statement. Characters are read from the input stream in. Overrides the pure virtual function in the base class. |
|
V |
|
void |
|
Report (ostream &out) |
|
|
|
|
This function outputs a brief report of the contents of this EMPTY block. Overrides the pure virtual function in the base class. |
|
V |
|
void |
|
Reset () |
|
|
|
|
Sets isEmpty to true in preparation for reading a new EMPTY block. Overrides the pure virtual function in the base class. |
|
|
|
void |
|
SkippingCommand (NxsString commandName) |
|
|
|
|
This function is called when an unknown command named commandName is about to be skipped. This version of the function (which is identical to the base class version) does nothing (i.e., no warning is issued that a command was unrecognized). Modify this virtual function to provide such warnings to the user (or eliminate it altogether since the base class version already does what this does). |
|
|
|
unsigned |
|
TaxonLabelToNumber (NxsString s) |
|
|
|
|
The code here is identical to the base class version (simply returns 0), so the code here should either be modified or this derived version eliminated altogether. Under what circumstances would you need to modify the default code, you ask? This function should be modified to something meaningful if this derived class needs to construct and run a NxsSetReader object to read a set involving taxa. The NxsSetReader object may need to use this function to look up a taxon label encountered in the set. A class that overrides this method should return the taxon index in the range [1..ntax]; i.e., add one to the 0-offset index. |
|