#include "common.h" TypeDef::TypeDef( const string &newName, const string &baseName ): newName( newName ), baseName( baseName ) { if( !Type::StringToType( baseName, baseType ) ){ SetError(3, baseName, cp ); return; } } TypeDef::~TypeDef(){ } TypeDefCollection::TypeDefCollection(){ } TypeDefCollection::~TypeDefCollection(){ } void TypeDefCollection::Add( const string &newName, const string &baseName ){ TypeDef typeDef( newName, baseName ); this->push_back( typeDef ); } int TypeDefCollection::GetIndex( const string &typeName ) const{ int max = (int)(*this).size(); for( int i=0; i