Qucs-core  0.0.19
Public Member Functions | Private Attributes
qucs::object Class Reference

generic object class. More...

#include <object.h>

Inheritance diagram for qucs::object:
Inheritance graph
[legend]
Collaboration diagram for qucs::object:
Collaboration graph
[legend]

Public Member Functions

 object ()
 Constructor creates an unnamed instance of the object class.
 object (const std::string &n)
 This constructor creates a named instance of the object class.
void setName (const std::string &n)
 Sets the name of the object.
const char * getName (void) const
 Get the name of the object.
void addProperty (const std::string &n, const char *const val, const bool def=false)
void addProperty (const std::string &n, const nr_double_t, const bool def=false)
void addProperty (const std::string &n, variable *const, const bool def=false)
void setProperty (const std::string &n, const char *const)
void setProperty (const std::string &n, nr_double_t)
void setScaledProperty (const std::string &n, const nr_double_t)
void setProperty (const std::string &n, variable *const)
vectorgetPropertyVector (const std::string &n) const
const char * getPropertyString (const std::string &n) const
const char * getPropertyReference (const std::string &n) const
nr_double_t getPropertyDouble (const std::string &n) const
nr_double_t getScaledProperty (const std::string &n) const
int getPropertyInteger (const std::string &n) const
bool hasProperty (const std::string &n) const
bool isPropertyGiven (const std::string &n) const
int countProperties (void) const
const char * propertyList (void) const

Private Attributes

std::string name
properties props

Detailed Description

generic object class.

Generic object class from which many Qucs classes are inheirited.

Definition at line 55 of file object.h.


Constructor & Destructor Documentation

qucs::object::object ( ) [inline]

Constructor creates an unnamed instance of the object class.

Definition at line 59 of file object.h.

qucs::object::object ( const std::string &  n) [inline]

This constructor creates a named instance of the object class.

Definition at line 61 of file object.h.


Member Function Documentation

void qucs::object::addProperty ( const std::string &  n,
const char *const  val,
const bool  def = false 
)

Definition at line 45 of file object.cpp.

void qucs::object::addProperty ( const std::string &  n,
const nr_double_t  val,
const bool  def = false 
)

Definition at line 64 of file object.cpp.

void qucs::object::addProperty ( const std::string &  n,
variable * const  val,
const bool  def = false 
)

Definition at line 90 of file object.cpp.

int qucs::object::countProperties ( void  ) const

Definition at line 181 of file object.cpp.

const char* qucs::object::getName ( void  ) const [inline]

Get the name of the object.

Definition at line 65 of file object.h.

nr_double_t qucs::object::getPropertyDouble ( const std::string &  n) const

Definition at line 132 of file object.cpp.

int qucs::object::getPropertyInteger ( const std::string &  n) const

Definition at line 155 of file object.cpp.

const char * qucs::object::getPropertyReference ( const std::string &  n) const

Definition at line 121 of file object.cpp.

const char * qucs::object::getPropertyString ( const std::string &  n) const

Definition at line 111 of file object.cpp.

qucs::vector * qucs::object::getPropertyVector ( const std::string &  n) const

Definition at line 100 of file object.cpp.

nr_double_t qucs::object::getScaledProperty ( const std::string &  n) const

Definition at line 143 of file object.cpp.

bool qucs::object::hasProperty ( const std::string &  n) const

Definition at line 165 of file object.cpp.

bool qucs::object::isPropertyGiven ( const std::string &  n) const

Definition at line 172 of file object.cpp.

const char * qucs::object::propertyList ( void  ) const

Definition at line 186 of file object.cpp.

void qucs::object::setName ( const std::string &  n) [inline]

Sets the name of the object.

Definition at line 63 of file object.h.

void qucs::object::setProperty ( const std::string &  n,
const char * const  val 
)

Definition at line 54 of file object.cpp.

void qucs::object::setProperty ( const std::string &  n,
nr_double_t  val 
)

Definition at line 73 of file object.cpp.

void qucs::object::setProperty ( const std::string &  n,
variable const 
)
void qucs::object::setScaledProperty ( const std::string &  n,
const nr_double_t  val 
)

Definition at line 84 of file object.cpp.


Field Documentation

std::string qucs::object::name [private]

Definition at line 86 of file object.h.

properties qucs::object::props [private]

Definition at line 87 of file object.h.


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