Main Page   Class Hierarchy   Compound List   File List   Compound Members  

SOMDataCadastre.h

00001 #ifndef SOMDataCadastre_H
00002 #define SOMDataCadastre_H
00003 
00004 #include "ISOMDataRepository.h"
00005 #include "Data.h"
00006 #include <string>
00007 
00008 using namespace std;
00009 
00011 
00020 class SOMDataCadastre {
00021 private:
00022         ISOMDataRepository *  _datarepository;
00023         void setSOMDataRepository( ISOMDataRepository& repository );    
00024         
00025 public:
00027         SOMDataCadastre( ISOMDataRepository&  repository );
00028 
00030         void save( SOMData data);
00031 
00033         SOMData * load( vector<string> fileName, int flag );
00034 };
00035 
00036 SOMDataCadastre::SOMDataCadastre( ISOMDataRepository& repository ) {
00037                 setSOMDataRepository( repository );
00038 };
00039 
00040 void 
00041 SOMDataCadastre::setSOMDataRepository( ISOMDataRepository&  repository ) {
00042                 _datarepository = &repository;
00043 };
00044 
00045 void 
00046 SOMDataCadastre::save( SOMData data) {
00047                 _datarepository->save( data );
00048 };
00049 
00050 SOMData *
00051 SOMDataCadastre::load( vector<string> fileName, int flag ) {
00052                 return _datarepository->load( fileName, flag  );
00053 };
00054 
00055 
00056 #endif

Generated on Thu Apr 8 15:04:10 2004 for SOMCode by doxygen1.2.18