libabigail
Public Member Functions | List of all members
list_property_value Class Reference

Abstracts the value of a property representing a list of strings. More...

#include <abg-ini.h>

Inheritance diagram for list_property_value:
[legend]

Public Member Functions

 list_property_value ()
 Default constructor of the list_property_value type. More...
 
 list_property_value (const vector< string > &values)
 Copy constructor of the list_property_value type. More...
 
virtual const string & as_string () const
 Return a string representation of the @list_property_value. More...
 
const vector< string > & get_content () const
 Getter of the content of the list_property_value. More...
 
void set_content (const vector< string > &)
 Setter of the content of the list_property_value. More...
 
- Public Member Functions inherited from property_value
 property_value ()
 Default constructor for the property_value type. More...
 
 property_value (value_kind)
 Constructor for the property_value type. More...
 
virtual ~property_value ()
 Destructor for the proprerty_value type. More...
 
value_kind get_kind () const
 Getter for the kind of the property_value type. More...
 
 operator const string & () const
 Converts the current property value to a string. More...
 

Additional Inherited Members

- Public Types inherited from property_value
enum  value_kind { ABSTRACT_PROPERTY_VALUE , STRING_PROPERTY_VALUE , LIST_PROPERTY_VALUE , TUPLE_PROPERTY_VALUE }
 

Detailed Description

Abstracts the value of a property representing a list of strings.

It's the right hand side of the construct which syntax looks like:

name = val1, val2, val3

where val1, val2 and val3 are strings.

So this class abstracts the set [val1, val2, val3].

Definition at line 141 of file abg-ini.h.

Constructor & Destructor Documentation

◆ list_property_value() [1/2]

Default constructor of the list_property_value type.

Definition at line 374 of file abg-ini.cc.

◆ list_property_value() [2/2]

list_property_value ( const vector< string > &  values)

Copy constructor of the list_property_value type.

Parameters
valuesthe instance of list_property_value to copy from.

Definition at line 382 of file abg-ini.cc.

Member Function Documentation

◆ as_string()

const string & as_string ( ) const
virtual

Return a string representation of the @list_property_value.

Returns
the string representation.

Implements property_value.

Definition at line 413 of file abg-ini.cc.

◆ get_content()

const vector< string > & get_content ( ) const

Getter of the content of the list_property_value.

The content of the list_property_value is a vector of strings.

Returns
the vector of strings contained in the list_property_value.

Definition at line 396 of file abg-ini.cc.

◆ set_content()

void set_content ( const vector< string > &  values)

Setter of the content of the list_property_value.

Parameters
valuesthe new content, which is a vector of strings.

Definition at line 403 of file abg-ini.cc.


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