/* * This file is part of the Cforall project * * $Id: UniqueName.cc,v 1.1 2002/04/30 03:30:14 rcbilson Exp $ * */ #include #include #include "UniqueName.h" UniqueName::UniqueName( const std::string &base ) : base( base ), count( 0 ) { } std::string UniqueName::newName( const std::string &additional ) { std::ostrstream os; os << base << additional << count++; return std::string( os.str(), os.pcount() ); }