Changeset 632 in dev for trunk/ab5.0/abdev/ab_common/include/Lexical/Source.h
- Timestamp:
- Jun 5, 2008, 10:04:39 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/ab_common/include/Lexical/Source.h
r603 r632 253 253 }; 254 254 typedef std::vector<BasicSource> BasicSources; 255 256 class SourceCodePosition 257 { 258 std::string objectModuleName; 259 int pos; 260 261 // XMLシリアライズ用 262 private: 263 friend class boost::serialization::access; 264 template<class Archive> void serialize(Archive& ar, const unsigned int version) 265 { 266 trace_for_serialize( "serializing - IncludedFilesRelation" ); 267 268 ar & BOOST_SERIALIZATION_NVP( objectModuleName ); 269 ar & BOOST_SERIALIZATION_NVP( pos ); 270 } 271 272 public: 273 SourceCodePosition( const std::string &objectModuleName, int pos ) 274 : objectModuleName( objectModuleName ) 275 , pos( pos ) 276 { 277 } 278 SourceCodePosition() 279 : pos( -1 ) 280 { 281 } 282 283 const std::string &GetObjectModuleName() const 284 { 285 return objectModuleName; 286 } 287 int GetPos() const 288 { 289 return pos; 290 } 291 };
Note:
See TracChangeset
for help on using the changeset viewer.