17 #ifndef ZORBA_INTERNAL_DIAGNOSTIC_H
18 #define ZORBA_INTERNAL_DIAGNOSTIC_H
30 namespace diagnostic {
34 namespace serialization {
40 namespace diagnostic {
67 location() : line_( 0 ), column_( 0 ), line_end_( 0 ), column_end_( 0 ) {
85 file_( file ), line_( line ), column_( column ),
86 line_end_( line_end ), column_end_( column_end )
103 template<
class StringType>
106 file_( file.
c_str() ), line_( line ), column_( column ),
107 line_end_( line_end ), column_end_( column_end )
117 return file_.c_str();
190 line_end_ = line_end;
191 column_end_ = column_end;
199 column_type column_end_;
212 typedef std::vector<std::string> params_type;
248 return params_[ i - 1 ];
268 void substitute( value_type *s )
const;
273 value_type lookup_param( size_type i )
const;