00001 #ifndef FRAGMENTFACTORY_H
00002 #define FRAGMENTFACTORY_H
00003
00004 #include <map>
00005 #include "Fragment.h"
00006 #include "InputFormat.h"
00007
00011 class FragmentFactory
00012 {
00013 public:
00014
00015 FragmentFactory( void );
00016 virtual ~FragmentFactory(){};
00017
00024 void buildFragment( Fragment& p_fragment, const std::string& p_input, const InputFormat& p_input_format ) const;
00025
00026 protected:
00027
00028 static const char* REFERENCE_ID;
00029 static std::string getFieldAtPosition( std::string p_String, int p_Position );
00030
00031 private:
00032
00033 typedef std::map<const char*,int> Pairs;
00034 };
00035
00036 #endif
00037 st char*,int> Pairs;
00038 };
00039
00040 #endif