std::string NxsDiscreteDatatypeMapper::StateCodeToNexusString ( NxsDiscreteStateCell  scode,
bool  demandSymbols = true 
) const [inline]

Returns the NEXUS reperesenation of the state code `scode` which may be a multiple character string such as {DNY} Generates a NxsNCLAPIException if `c` is not a valid state code.

If insufficient symbols exist, then `demandSymbols` controls the behavior (if true then an NxsNCLAPIException is raised, otherwise an empty string is returned.

Note that WriteStateCodeAsNexusString(out, c); Is more efficient than out << StateCodeToNexusString(c);

Definition at line 1393 of file nxscharactersblock.h.

 All Classes Functions Variables Enumerations Enumerator Friends
Generated on Mon Mar 29 16:37:12 2010 for NCL by  doxygen 1.6.3