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.

Definition at line 29 of file SvgParameter.cpp.

Referenced by clone(), and SvgParameter().

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.

Definition at line 33 of file SvgParameter.cpp.

References SvgParameter(), and ~SvgParameter().

te::se::SvgParameter::SvgParameter ( const SvgParameter rhs)
default

Copy constructor.

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

Destructor.

Referenced by SvgParameter().

Member Function Documentation

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

It creates a new copy of this object.

Definition at line 55 of file SvgParameter.cpp.

References SvgParameter().

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

Definition at line 45 of file SvgParameter.cpp.

References m_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.

Referenced by getName(), and setName().


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