// Read start block // Set the name and type of the description // Returns false if invalid format bool TRFactory::readStartBlockLine(const string& inString, TRDescription& outDescription) { bool theSuccess = false; char theType[maxLineLength]; char theName[maxLineLength]; memset(theType, ' ', maxLineLength); memset(theName, ' ', maxLineLength); // Read three tokens. There should be "start" <type> <name> if(sscanf(inString.c_str(), "start %s %s", theType, theName) == 2) { outDescription.SetName(theName); outDescription.SetType(theType); theSuccess = true; } return theSuccess; }