advgetopt 2.0.47
Parse complex command line arguments and configuration files in C++.
Public Member Functions | Private Attributes | List of all members
advgetopt::parameter_value Class Reference

#include <conf_file.h>

Public Member Functions

 parameter_value ()
 
 parameter_value (parameter_value const &rhs)
 
 parameter_value (std::string const &value)
 
assignment_t get_assignment_operator () const
 
std::string get_comment (bool ensure_newline=false) const
 
int get_line () const
 
std::string constget_value () const
 
 operator std::string () const
 
parameter_valueoperator= (parameter_value const &rhs)
 
parameter_valueoperator= (std::string const &value)
 
void set_assignment_operator (assignment_t a)
 
void set_comment (std::string const &comment)
 
void set_line (int line)
 
void set_value (std::string const &value)
 

Private Attributes

assignment_t f_assignment_operator = assignment_t::ASSIGNMENT_SET
 
std::string f_comment = std::string()
 
int f_line = 0
 
std::string f_value = std::string()
 

Detailed Description

Definition at line 153 of file conf_file.h.

Constructor & Destructor Documentation

◆ parameter_value() [1/3]

advgetopt::parameter_value::parameter_value ( )

Definition at line 650 of file conf_file.cpp.

◆ parameter_value() [2/3]

advgetopt::parameter_value::parameter_value ( parameter_value const rhs)

Definition at line 655 of file conf_file.cpp.

◆ parameter_value() [3/3]

advgetopt::parameter_value::parameter_value ( std::string const value)

Definition at line 664 of file conf_file.cpp.

Member Function Documentation

◆ get_assignment_operator()

assignment_t advgetopt::parameter_value::get_assignment_operator ( ) const

Definition at line 762 of file conf_file.cpp.

References f_assignment_operator.

◆ get_comment()

std::string advgetopt::parameter_value::get_comment ( bool  ensure_newline = false) const

Definition at line 739 of file conf_file.cpp.

References f_comment.

◆ get_line()

int advgetopt::parameter_value::get_line ( ) const

Definition at line 756 of file conf_file.cpp.

References f_line.

◆ get_value()

std::string const & advgetopt::parameter_value::get_value ( ) const

Definition at line 733 of file conf_file.cpp.

References f_value.

◆ operator std::string()

advgetopt::parameter_value::operator std::string ( ) const

Definition at line 690 of file conf_file.cpp.

◆ operator=() [1/2]

parameter_value & advgetopt::parameter_value::operator= ( parameter_value const rhs)

Definition at line 670 of file conf_file.cpp.

References f_assignment_operator, f_comment, f_line, and f_value.

◆ operator=() [2/2]

parameter_value & advgetopt::parameter_value::operator= ( std::string const value)

Definition at line 683 of file conf_file.cpp.

References f_value.

◆ set_assignment_operator()

void advgetopt::parameter_value::set_assignment_operator ( assignment_t  a)

Definition at line 727 of file conf_file.cpp.

References f_assignment_operator.

◆ set_comment()

void advgetopt::parameter_value::set_comment ( std::string const comment)

Definition at line 702 of file conf_file.cpp.

References f_comment.

◆ set_line()

void advgetopt::parameter_value::set_line ( int  line)

Definition at line 721 of file conf_file.cpp.

References f_line.

◆ set_value()

void advgetopt::parameter_value::set_value ( std::string const value)

Definition at line 696 of file conf_file.cpp.

References f_value.

Member Data Documentation

◆ f_assignment_operator

assignment_t advgetopt::parameter_value::f_assignment_operator = assignment_t::ASSIGNMENT_SET
private

Definition at line 178 of file conf_file.h.

Referenced by get_assignment_operator(), operator=(), and set_assignment_operator().

◆ f_comment

std::string advgetopt::parameter_value::f_comment = std::string()
private

Definition at line 176 of file conf_file.h.

Referenced by get_comment(), operator=(), and set_comment().

◆ f_line

int advgetopt::parameter_value::f_line = 0
private

Definition at line 177 of file conf_file.h.

Referenced by get_line(), operator=(), and set_line().

◆ f_value

std::string advgetopt::parameter_value::f_value = std::string()
private

Definition at line 175 of file conf_file.h.

Referenced by get_value(), operator=(), operator=(), and set_value().


The documentation for this class was generated from the following files:

This document is part of the Snap! Websites Project.

Copyright by Made to Order Software Corp.