My Project
SplitString.hh
00001 /*
00002 $Id: SplitString.hh 1562 2006-06-08 10:27:20Z suzuki $
00003 */
00004 
00005 
00006 #ifndef SPLITSTRING
00007 #define SPLITSTRING
00008 #include "Header.hh"
00009 
00011 
00024 class SplitString
00025 {
00026 private:
00027   //string *list;
00028   //UInt4 ListSize;
00029   //void MakeTemp(  string Source, string SplitKey );
00030 protected:
00031 
00032 public:
00033   SplitString();
00036  ~SplitString();
00041   vector<string> Split( string Source, string SplitKey )
00042   { return PutStringArray( Source, SplitKey ); }
00043 
00044   vector<UInt4> PutUInt4( string Source, string SplitKey )
00045   { return PutUInt4Array( Source,SplitKey ); }
00046 
00047   vector<Double> PutDouble( string Source, string SplitKey )
00048   { return PutDoubleArray( Source,SplitKey );}
00049 
00050   vector<string> PutStringArray( string Source, string SplitKey );
00058   vector<string> PutStringArrayWithSpace( string Source, string SplitKey );
00059 
00060   vector<Int2> PutInt2Array( string Source, string SplitKey );
00065   vector<Int4> PutInt4Array(   string Source, string SplitKey );
00070   vector<UInt2> PutUInt2Array(  string Source, string SplitKey );
00075   vector<UInt4> PutUInt4Array(  string Source, string SplitKey );
00080   vector<Float> PutFloatArray(  string Source, string SplitKey );
00085   vector<Double> PutDoubleArray( string Source, string SplitKey );
00090 };
00091 
00092 #endif
 All Classes Functions Variables Friends