00001 /* 00002 FALCON - The Falcon Programming Language. 00003 FILE: linemap.h 00004 00005 Line map with module serialization support. 00006 ------------------------------------------------------------------- 00007 Author: Giancarlo Niccolai 00008 Begin: dom ago 21 2005 00009 00010 ------------------------------------------------------------------- 00011 (C) Copyright 2004: the FALCON developers (see list in AUTHORS file) 00012 00013 See LICENSE file for licensing details. 00014 */ 00015 00020 #ifndef flc_linemap_H 00021 #define flc_linemap_H 00022 00023 #include <falcon/genericmap.h> 00024 #include <falcon/types.h> 00025 00026 namespace Falcon { 00027 00028 class Stream; 00029 00035 class FALCON_DYN_CLASS LineMap: public Map 00036 { 00037 public: 00038 LineMap(); 00039 ~LineMap() {} 00040 00041 void addEntry( uint32 pcounter, uint32 line ) { insert( &pcounter, &line ); } 00042 bool save( Stream *out ) const; 00043 bool load( Stream *in ); 00044 }; 00045 00046 } 00047 00048 #endif 00049 00050 /* end of linemap.h */