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

A simple property. That is, one which value is a string_property_value. More...

#include <abg-ini.h>

Inheritance diagram for simple_property:
[legend]

Public Member Functions

 simple_property ()
 Default constructor of the simple_property type.
 
 simple_property (const string &name)
 Constructor for the simple_property type.
 
 simple_property (const string &name, const string_property_value_sptr &value)
 Constructor for the simple_property type.
 
virtual ~simple_property ()
 Destructor of the simple_property type.
 
const string_property_value_sptrget_value () const
 Getter for the string value of the property.
 
bool has_empty_value () const
 Test if the property has an empty value.
 
void set_value (const string_property_value_sptr &value)
 Setter for the string value of the property.
 
- Public Member Functions inherited from property
 property ()
 Constructor of property.
 
 property (const string &name)
 Constructor of property.
 
virtual ~property ()
 Destructor of the property.
 
const string & get_name () const
 Getter of the name of the property.
 
void set_name (const string &name)
 Setter of the name of the property.
 

Detailed Description

A simple property. That is, one which value is a string_property_value.

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

Constructor & Destructor Documentation

◆ simple_property() [1/3]

Default constructor of the simple_property type.

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

◆ simple_property() [2/3]

simple_property ( const string & name,
const string_property_value_sptr & value )

Constructor for the simple_property type.

Parameters
namethe name of the property.
valuethe value of the property.

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

◆ simple_property() [3/3]

simple_property ( const string & name)

Constructor for the simple_property type.

This one constructs a property with an empty value.

Parameters
namethe name of the property.

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

◆ ~simple_property()

~simple_property ( )
virtual

Destructor of the simple_property type.

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

Member Function Documentation

◆ get_value()

const string_property_value_sptr & get_value ( ) const

Getter for the string value of the property.

Returns
the string value of the property.

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

◆ has_empty_value()

bool has_empty_value ( ) const

Test if the property has an empty value.

An empty value is either no value at all or an empty string value.

Returns
true iff the property has an empty value.

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

◆ set_value()

void set_value ( const string_property_value_sptr & value)

Setter for the string value of the property.

Parameters
valuethe new string value of the property.

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


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