Changeset 637 in dev for trunk/ab5.0/abdev/ab_common/include/Lexical/Source.h
- Timestamp:
- Jun 11, 2008, 10:10:26 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/ab_common/include/Lexical/Source.h
r636 r637 265 265 class SourceCodePosition 266 266 { 267 std::string objectModuleName;267 int relationalObjectModuleIndex; 268 268 int pos; 269 269 … … 273 273 template<class Archive> void serialize(Archive& ar, const unsigned int version) 274 274 { 275 trace_for_serialize( "serializing - IncludedFilesRelation" ); 276 277 ar & BOOST_SERIALIZATION_NVP( objectModuleName ); 275 ar & BOOST_SERIALIZATION_NVP( relationalObjectModuleIndex ); 278 276 ar & BOOST_SERIALIZATION_NVP( pos ); 279 277 } 280 278 281 279 public: 282 SourceCodePosition( const std::string &objectModuleName, int pos )283 : objectModuleName( objectModuleName)280 SourceCodePosition( int relationalObjectModuleIndex, int pos ) 281 : relationalObjectModuleIndex( relationalObjectModuleIndex ) 284 282 , pos( pos ) 285 283 { 286 284 } 287 285 SourceCodePosition() 288 : pos( -1 ) 289 { 290 } 291 292 const std::string &GetObjectModuleName() const 293 { 294 return objectModuleName; 286 : relationalObjectModuleIndex( -1 ) 287 , pos( -1 ) 288 { 289 } 290 291 int GetRelationalObjectModuleIndex() const; 292 void SetRelationalObjectModuleIndex( int relationalObjectModuleIndex ) 293 { 294 this->relationalObjectModuleIndex = relationalObjectModuleIndex; 295 295 } 296 296 int GetPos() const … … 298 298 return pos; 299 299 } 300 }; 300 void SetPos( int pos ) 301 { 302 this->pos = pos; 303 } 304 305 bool IsNothing() const; 306 };
Note:
See TracChangeset
for help on using the changeset viewer.