...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::process::basic_native_environment::entry_type
// In header: <boost/process/environment.hpp> template<typename Char, typename Environment> struct entry_type { // types typedef Char value_type; typedef const value_type * pointer; typedef std::basic_string< value_type > string_type; typedef boost::iterator_range< pointer > range; typedef Environment environment_t; // construct/copy/destruct entry & operator=(const entry &) = default; entry & operator=(const string_type &); entry & operator=(const std::vector< string_type > &); // public member functions std::vector< string_type > to_vector() const; entry(const entry &) = default; bool empty() const; void assign(const string_type &); void assign(const std::vector< string_type > &); void append(const string_type &); void clear(); entry & operator+=(const string_type &); };
Proxy class used for read and write access to members by [] or .at()
Note | |
---|---|
Holds a reference to the environment it was created from. |
entry_type
public member functionsstd::vector< string_type > to_vector() const;Split the entry by ";" or ":" and return it as a vector. Used by PATH.
Get the value as string. Get the name of this entry.
entry(const entry &) = default;Copy Constructor.
bool empty() const;Check if the entry is empty.
void assign(const string_type & value);Assign a string to the value.
void assign(const std::vector< string_type > & value);Assign a set of strings to the entry; they will be separated by ';' or ':'.
void append(const string_type & value);Append a string to the end of the entry, it will separated by ';' or ':'.
void clear();Reset the value.
entry & operator+=(const string_type & value);Append a string to the end of the entry, it will separated by ';' or ':'.