Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of boost. Click here for the latest Boost documentation.
PrevUpHomeNext

Class value_semantic_codecvt_helper<wchar_t>

boost::program_options::value_semantic_codecvt_helper<wchar_t>

Synopsis

class value_semantic_codecvt_helper<wchar_t> :
  public boost::program_options::value_semantic
{
public:

  // private member functions
  void parse(boost::any &, const std::vector< std::string > &, bool) const;

  // protected member functions
  void xparse(boost::any &, const std::vector< std::wstring > &) const;
};

Description

Helper conversion class for values that accept ascii strings as input. Overrides the 'parse' method and defines new 'xparse' method taking std::wstring. Depending on whether input to parse is ascii or UTF8, will recode input to Unicode, or pass it unmodified.

value_semantic_codecvt_helper private member functions

  1. void parse(boost::any & value_store, 
               const std::vector< std::string > & new_tokens, bool utf8) const;

    Parses a group of tokens that specify a value of option. Stores the result in 'value_store', using whatever representation is desired. May be be called several times if value of the same option is specified more than once.

value_semantic_codecvt_helper protected member functions

  1. void xparse(boost::any & value_store, 
                const std::vector< std::wstring > & new_tokens) const;

PrevUpHomeNext