// Read the documentation to learn more about C++ code generator // versioning. // %X% %Q% %Z% %W% // XSutility #include #include #include #include #include #include #include #include #include "XSstream.h" #include
#include #include #include #include #include namespace XSutility { string addSuffix( const string& oldName, XSutility::fileType type) { static const string pha = ".pha"; static const string bck = ".bck"; static const string cor = ".cor"; static const string rsp = ".rsp"; static const string arf = ".arf"; int dot = oldName.find_last_of('.'); string newName(oldName); if (dot >= 1) return newName; switch (type) { case PHA: newName += pha; break; case BCK: newName += bck; break; case RSP: newName += rsp; break; case COR: newName += cor; break; case ARF: newName += arf; break; default: break; } return newName; } void printValidOptions(std::ostream& s, const string& command, const std::map& options) { std::ostringstream sOut; s << "Syntax: " << command << "