Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008 #ifndef ZenLib_InfoMapH
00009 #define ZenLib_InfoMapH
00010
00011
00012
00013 #include "ZenLib/ZtringList.h"
00014 #include <map>
00015
00016
00017 namespace ZenLib
00018 {
00019
00020
00021
00022
00023
00024 class InfoMap : public std::multimap<Ztring, ZtringList>
00025 {
00026 public :
00027
00028 InfoMap ();
00029 InfoMap (const Ztring &Source);
00030 InfoMap (const Char *Source);
00031 #ifdef _UNICODE
00032 InfoMap (const char *Source);
00033 #endif
00034
00035
00036 const Ztring &Get (const Ztring &Value, size_t Pos) const;
00037 const Ztring &Get (const Ztring &Value, size_t Pos, const Ztring &WithValue, size_t WithValue_Pos) const;
00038 void Write (const Ztring &NewLanguage);
00039
00040
00041
00042 void Separator_Set (size_type Level, const Ztring &NewSeparator);
00043
00044
00045 void Quote_Set (const Ztring &NewQuote);
00046
00047
00048 void Max_Set (size_type Level, size_type Max);
00049
00050 protected :
00051 Ztring Separator[2];
00052 Ztring Quote;
00053 size_type Max[2];
00054 };
00055
00056 }
00057 #endif