#include <ncbistr.hpp>
Collaboration diagram for CStringPairs< TContainer >:

The container class must hold pairs of strings (pair<string, string>).
Definition at line 2781 of file ncbistr.hpp.
Public Types | |
| typedef TContainer | TStrPairs |
| typedef TContainer::value_type | TStrPair |
| The container's value type must be pair<string, string> or a compatible type. | |
Public Member Functions | |
| CStringPairs (IStringDecoder *decoder=NULL, EOwnership own_decoder=eTakeOwnership, IStringEncoder *encoder=NULL, EOwnership own_encoder=eTakeOwnership) | |
| Create parser with the specified decoder/encoder and default separators. | |
| CStringPairs (const string &arg_sep, const string &val_sep, IStringDecoder *decoder=NULL, EOwnership own_decoder=eTakeOwnership, IStringEncoder *encoder=NULL, EOwnership own_encoder=eTakeOwnership) | |
| Create parser with the specified parameters. | |
| CStringPairs (NStr::EUrlDecode decode_flag, NStr::EUrlEncode encode_flag) | |
| Create parser with the selected URL-encoding/decoding options and default separators. | |
| virtual | ~CStringPairs (void) |
| void | SetDecoder (IStringDecoder *decoder, EOwnership own=eTakeOwnership) |
| Set string decoder. | |
| IStringDecoder * | GetDecoder (void) |
| Get decoder or NULL. Does not affect decoder ownership. | |
| void | SetEncoder (IStringEncoder *encoder, EOwnership own=eTakeOwnership) |
| Set string encoder. | |
| IStringDecoder * | GetEncoder (void) |
| Get encoder or NULL. Does not affect encoder ownership. | |
| void | Parse (const CTempString &str, NStr::EMergeDelims merge_argsep=NStr::eMergeDelims) |
| Parse the string. | |
| string | Merge (void) const |
| Merge name-value pairs into a single string using the currently set separators and the provided encoder if any. | |
| const TStrPairs & | GetPairs (void) const |
| Read data. | |
| TStrPairs & | GetPairs (void) |
| Get non-const data. | |
Static Public Member Functions | |
| static void | Parse (TStrPairs &pairs, const CTempString &str, const string &arg_sep, const string &val_sep, IStringDecoder *decoder=NULL, EOwnership own=eTakeOwnership, NStr::EMergeDelims merge_argsep=NStr::eMergeDelims) |
| Parse the string using the provided decoder, put data into the container. | |
| static string | Merge (const TStrPairs &pairs, const string &arg_sep, const string &val_sep, IStringEncoder *encoder=NULL, EOwnership own=eTakeOwnership) |
| Merge name-value pairs from the provided container, separators and encoder. | |
Private Attributes | |
| string | m_ArgSep |
| string | m_ValSep |
| AutoPtr< IStringDecoder > | m_Decoder |
| AutoPtr< IStringEncoder > | m_Encoder |
| TStrPairs | m_Data |
|
|||||
|
The container's value type must be pair<string, string> or a compatible type.
Definition at line 2787 of file ncbistr.hpp. |
|
|||||
|
Definition at line 2784 of file ncbistr.hpp. |
|
||||||||||||||||||||||||
|
Create parser with the specified decoder/encoder and default separators.
Definition at line 2799 of file ncbistr.hpp. |
|
||||||||||||||||||||||||||||||||
|
Create parser with the specified parameters.
Definition at line 2824 of file ncbistr.hpp. |
|
||||||||||||||||
|
Create parser with the selected URL-encoding/decoding options and default separators.
Definition at line 2844 of file ncbistr.hpp. |
|
||||||||||
|
Definition at line 2853 of file ncbistr.hpp. |
|
||||||||||
|
Get decoder or NULL. Does not affect decoder ownership.
Definition at line 2864 of file ncbistr.hpp. |
|
||||||||||
|
Get encoder or NULL. Does not affect encoder ownership.
Definition at line 2875 of file ncbistr.hpp. |
|
||||||||||
|
Get non-const data.
Definition at line 2987 of file ncbistr.hpp. |
|
||||||||||
|
Read data.
Definition at line 2985 of file ncbistr.hpp. |
|
||||||||||||||||||||||||||||
|
Merge name-value pairs from the provided container, separators and encoder. Delete the encoder if the ownership flag allows.
Definition at line 2960 of file ncbistr.hpp. References IStringEncoder::eName, IStringEncoder::eValue, and ITERATE. |
|
||||||||||
|
Merge name-value pairs into a single string using the currently set separators and the provided encoder if any.
Definition at line 2941 of file ncbistr.hpp. References eNoOwnership, and Merge(). Referenced by SDiagMessage::FormatExtraMessage(), and CNcbiResourceInfo::x_GetEncoded(). |
|
||||||||||||||||||||||||||||||||||||
|
Parse the string using the provided decoder, put data into the container.
Definition at line 2909 of file ncbistr.hpp. References IStringDecoder::eName, IStringDecoder::eValue, ITERATE, NStr::Split(), and NStr::SplitInTwo(). |
|
||||||||||||||||
|
Parse the string.
Definition at line 2886 of file ncbistr.hpp. References eNoOwnership. |
|
||||||||||||||||
|
Set string decoder.
Definition at line 2861 of file ncbistr.hpp. Referenced by CNcbiResourceInfo::CNcbiResourceInfo(). |
|
||||||||||||||||
|
Set string encoder.
Definition at line 2872 of file ncbistr.hpp. Referenced by CNcbiResourceInfo::CNcbiResourceInfo(). |
|
|||||
|
Definition at line 2990 of file ncbistr.hpp. |
|
|||||
|
Definition at line 2994 of file ncbistr.hpp. |
|
|||||
|
Definition at line 2992 of file ncbistr.hpp. |
|
|||||
|
Definition at line 2993 of file ncbistr.hpp. |
|
|||||
|
Definition at line 2991 of file ncbistr.hpp. |
1.4.6
Modified on Mon Dec 07 16:24:11 2009 by modify_doxy.py rev. 173732