te::se::SvgParameter Class Reference

A SvgParameter refers to an SVG/CSS graphical-formatting parameter. More...

#include <SvgParameter.h>

Inheritance diagram for te::se::SvgParameter:
te::se::ParameterValue

Public Member Functions

SvgParameterclone () const
 It creates a new copy of this object. More...
 
Initializer Methods

Methods related to instantiation and destruction.

 SvgParameter (const std::string &name)
 It initializes a new SvgParameter. More...
 
 SvgParameter (const std::string &name, const std::string &value)
 It initializes a new SvgParameter with the given value. More...
 
 SvgParameter (const SvgParameter &rhs)
 Copy constructor. More...
 
 ~SvgParameter ()
 Destructor. More...
 
Accessors

Methods for retrieving and setting properties.

void setName (const std::string &name)
 
std::string getName () const
 
Accessors

Methods for retrieving and setting properties.

void add (Parameter *p)
 
void add (const std::string &value)
 
size_t getNParameters () const
 
const ParametergetParameter (size_t i) const
 

Private Attributes

std::string m_name
 The name attribute of the SvgParameter element. (Mandatory) More...
 

Detailed Description

A SvgParameter refers to an SVG/CSS graphical-formatting parameter.

The parameter is identified using the "name" attribute and the content of the element gives the SVG/CSS-coded value.

See also
ParameterValue

Definition at line 48 of file SvgParameter.h.

Constructor & Destructor Documentation

te::se::SvgParameter::SvgParameter ( const std::string &  name)

It initializes a new SvgParameter.

Parameters
nameSVG parameter name.
te::se::SvgParameter::SvgParameter ( const std::string &  name,
const std::string &  value 
)

It initializes a new SvgParameter with the given value.

Parameters
nameSVG parameter name.
valueSVG parameter value.
te::se::SvgParameter::SvgParameter ( const SvgParameter rhs)

Copy constructor.

Parameters
rhsThe other svg parameter.
te::se::SvgParameter::~SvgParameter ( )

Destructor.

Member Function Documentation

void te::se::ParameterValue::add ( Parameter p)
inherited
void te::se::ParameterValue::add ( const std::string &  value)
inherited
SvgParameter* te::se::SvgParameter::clone ( ) const

It creates a new copy of this object.

std::string te::se::SvgParameter::getName ( ) const
size_t te::se::ParameterValue::getNParameters ( ) const
inherited
const Parameter* te::se::ParameterValue::getParameter ( size_t  i) const
inherited
void te::se::SvgParameter::setName ( const std::string &  name)

Member Data Documentation

std::string te::se::SvgParameter::m_name
private

The name attribute of the SvgParameter element. (Mandatory)

Definition at line 100 of file SvgParameter.h.


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