00001 #ifndef Row_H
00002 #define Row_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #include <vector>
00029
00030 class Exception;
00031
00032 using namespace std;
00033
00034 class Row {
00035
00036 friend ostream& operator << ( ostream& os, Row& a ) {
00037 a.print( os );
00038 return os;
00039 }
00040
00041 friend ostream& operator << ( ostream& os, Row* a ) {
00042 a->print( os );
00043 return os;
00044 }
00045
00046 public:
00047
00048 ~Row( ) { }
00049
00050 Row( const vector< string >& row_options ) throw ( Exception );
00051
00052 const vector< pair< long, long > >& get_range( ) { return start_end; }
00053
00054 private:
00055
00056 void print( ostream& os ) const;
00057
00058 vector< pair< long, long > > start_end;
00059
00060 };
00061
00062 #endif