--- parser3/src/main/pa_dictionary.C 2001/10/19 12:43:30 1.8 +++ parser3/src/main/pa_dictionary.C 2002/08/01 11:41:18 1.16 @@ -1,12 +1,12 @@ /** @file Parser: dictionary class impl. - Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) - Author: Alexander Petrosyan (http://design.ru/paf) - - $Id: pa_dictionary.C,v 1.8 2001/10/19 12:43:30 parser Exp $ + Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com) + Author: Alexandr Petrosian (http://paf.design.ru) */ +static const char* IDENT_DICTIONARY_C="$Date: 2002/08/01 11:41:18 $"; + #include "pa_dictionary.h" #include "pa_exception.h" @@ -17,9 +17,9 @@ void Dictionary::add_first(Array::Item * const String& a=*row->get_string(0); const String& b=*row->get_string(1); // empty 'a' check - if(a.size()==0) { + if(a.is_empty()) { Pool& pool=self.pool(); - throw Exception(0, 0, + throw Exception("parser.runtime", &a, "dictionary table 'from' column elements must not be empty"); } @@ -33,7 +33,6 @@ void Dictionary::add_first(Array::Item * self.constructor_line++; } - Dictionary::Dictionary(Table& atable, double amin_ratio) : Pooled(atable.pool()), table(atable), fmax_ratio(amin_ratio) {