libabigail
Loading...
Searching...
No Matches
string_property_value Class Reference

A property value which is a string. More...

#include <abg-ini.h>

Inheritance diagram for string_property_value:
[legend]

Public Member Functions

 string_property_value ()
 Constructor of the string_property_value type.
 
 string_property_value (const string &value)
 Constructor of the string_property_value.
 
virtual ~string_property_value ()
 Destructor for the string_property_value.
 
virtual const string & as_string () const
 Convert the string property value into a string.
 
 operator string () const
 Conversion operator to a string, for the string_property_value type.
 
void set_content (const string &)
 Setter of the content of the string property value.
 
- Public Member Functions inherited from property_value
 property_value ()
 Default constructor for the property_value type.
 
 property_value (value_kind)
 Constructor for the property_value type.
 
virtual ~property_value ()
 Destructor for the proprerty_value type.
 
value_kind get_kind () const
 Getter for the kind of the property_value type.
 
 operator const string & () const
 Converts the current property value to a string.
 

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

A property value which is a string.

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

Constructor & Destructor Documentation

◆ string_property_value() [1/2]

Constructor of the string_property_value type.

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

◆ string_property_value() [2/2]

string_property_value ( const string & content)

Constructor of the string_property_value.

Parameters
contentthe string content of the property value.

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

◆ ~string_property_value()

~string_property_value ( )
virtual

Destructor for the string_property_value.

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

Member Function Documentation

◆ as_string()

const string & as_string ( ) const
virtual

Convert the string property value into a string.

Returns
the string contained in the string property value.

Implements property_value.

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

◆ operator string()

operator string ( ) const

Conversion operator to a string, for the string_property_value type.

Returns
the string representing this string_property_value.

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

◆ set_content()

void set_content ( const string & c)

Setter of the content of the string property value.

Parameters
cthe new content.

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


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