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 ) {
89 file_( file ), line_( line ), column_( column ),
90 line_end_( line_end ), column_end_( column_end )
106 template<
class StringType>
108 StringType
const &
file,
113 file_( file.
c_str() ), line_( line ), column_( column ),
114 line_end_( line_end ), column_end_( column_end )
124 return file_.c_str();
201 line_end_ = line_end;
202 column_end_ = column_end;
210 column_type column_end_;
223 typedef std::vector<std::string> params_type;
259 return params_[ i - 1 ];
279 void substitute( value_type *s )
const;
284 value_type lookup_param( size_type i )
const;