| Home | Libraries | People | FAQ | More

## Class untyped_value

boost::program_options::untyped_value —

## Synopsis

    class untyped_value
      :  : public boost::program_options::value_semantic_codecvt_helper< charT >
    {
    public:
      // construct/copy/destruct
      untyped_value(bool = false);

      // public member functions
      std::string name() const;
      bool is_zero_tokens() const;
      bool is_composing() const;
      bool is_implicit() const;
      bool is_multitoken() const;
      void xparse(boost::any &, const std::vector< std::string > &) const;
      bool apply_default(boost::any &) const;
      void notify(const boost::any &) const;
    };

## Description

Class which specifies a simple handling of a value: the value will have string type and only one token is allowed.

### `untyped_value` construct/copy/destruct

1.     untyped_value(bool zero_tokens = false);

### `untyped_value` public member functions

1.     std::string name() const;

2.     bool is_zero_tokens() const;

3.     bool is_composing() const;

4.     bool is_implicit() const;

5.     bool is_multitoken() const;

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

   If 'value_store' is already initialized, or new_tokens has more than one elements, throws. Otherwise, assigns the first string from 'new_tokens' to 'value_store', without any modifications.

7.     bool apply_default(boost::any & ) const;

   Does nothing.

8.     void notify(const boost::any & ) const;

   Does nothing.

| Copyright © 2002-2004 Vladimir Prus