Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's C++ page.

 

 

 

 

 

(C++) InspectInvalidNewick

 

InspectInvalidNewick is a Newick code snippets to inspect an invalid Newick.

 

///InspectInvalidNewick writes the cause of the Newick invalidity
///to the std::ostream.
///From http://www.richelbilderbeek.nl/CppInspectInvalidNewick.htm
void InspectInvalidNewick(std::ostream& os, const std::vector<int>& v)
{
  os << "InspectInvalidNewick on: "
    << DumbNewickToString(v) << '\n';
  try
  {
    CheckNewick(v);
  }
  catch (std::exception& e)
  {
    os << "Invalidity caused by: " << e.what() << '\n';
  }
}

 

 

 

 

 

Go back to Richel Bilderbeek's C++ page.

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict