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 basic_parsed_options<wchar_t>

boost::program_options::basic_parsed_options<wchar_t>

Synopsis

// In header: <boost/program_options/parsers.hpp>


class basic_parsed_options<wchar_t> {
public:
  // construct/copy/destruct
  explicit basic_parsed_options(const basic_parsed_options< char > &);

  // public data members
  std::vector< basic_option< wchar_t > > options;
  const options_description * description;
  basic_parsed_options< char > utf8_encoded_options;
  int m_options_prefix;
};

Description

Specialization of basic_parsed_options which:

basic_parsed_options public construct/copy/destruct

  1. explicit basic_parsed_options(const basic_parsed_options< char > & po);

    Constructs wrapped options from options in UTF8 encoding.

basic_parsed_options public public data members

  1. basic_parsed_options< char > utf8_encoded_options;

    Stores UTF8 encoded options that were passed to constructor, to avoid reverse conversion in some cases.

  2. int m_options_prefix;

    Mainly used for the diagnostic messages in exceptions. The canonical option prefix for the parser which generated these results, depending on the settings for basic_command_line_parser::style() or cmdline::style(). In order of precedence of command_line_style enums: allow_long allow_long_disguise allow_dash_for_short allow_slash_for_short


PrevUpHomeNext