2010-06-15 08:12:13 -05:00
// -*- C++ -*-
namespace DTR {
/*! \class Techno
*
* This class contains generic informations such as the name of the technology and the unit used, and the list of all technologic rules.
*/
2012-03-26 10:39:08 -05:00
/*! \fn Techno::Techno(const char* name, const char* unit, const char* version)
2010-06-15 08:12:13 -05:00
* \brief creates a new technology
*
* \param name the name of the technology.
* \param unit the unit used for all values.
2012-03-26 10:39:08 -05:00
* \param version the technology version/revision.
2010-06-15 08:12:13 -05:00
*/
2012-03-26 10:39:08 -05:00
/*! \fn inline const std::string& Techno::getName() const
2010-06-15 08:12:13 -05:00
* \brief returns the name of the technology.
*/
2012-03-26 10:39:08 -05:00
/*! \fn inline const std::string& Techno::getUnit() const
2010-06-15 08:12:13 -05:00
* \brief returns the unit.
*/
/*! \fn inline std::vector<Rule*>& Techno::getRules()
* \brief returns a reference on the std::vector containing all technology's rules.
*
* \note this method is not yet available in python
*/
2012-03-26 10:39:08 -05:00
/*! \fn Rule* Techno::addRule(const char* name, double value, const char* ref, const char* layer1, const char* layer2)
2010-06-15 08:12:13 -05:00
* \brief creates a new Rule and adds it the to Techno object.
*
* \param name the name of the rule.
* \param value the value of the rule.
* \param ref the reference of the rule (helpful to find the rule in design kit).
2012-03-26 10:39:08 -05:00
* \param layer1 the first layer. This is an optionnal argument, default value is "".
* \param layer2 the second layer. This is an optionnal argument, default value is "".
2010-06-15 08:12:13 -05:00
*
* \return the newly created Rule object.
*/
2012-03-26 10:39:08 -05:00
/*! \fn Arule* Techno::addARule(const char* name, double value, const char* ref, const char* layer1, const char* layer2)
2010-06-15 08:12:13 -05:00
* \brief creates a new ARule and adds it to the Techno object.
*
* \param name the name of the rule.
* \param value the value of the rule.
* \param ref the reference of the rule (helpful to find the rule in design kit).
* \param layer1 the first layer.
* \param layer2 the second layer.
*
* \return the newly created ARule object.
*/
2012-03-26 10:39:08 -05:00
/*! \fn Rule* Techno::getRule(const char* name, const char* layer1, const char* layer2)
2010-06-15 08:12:13 -05:00
* \brief returns the rule uniquely identified by its name and layers.
*
* \param name the name of the rule.
2012-03-26 10:39:08 -05:00
* \param layer1 the first layer. This is an optionnal argument, default value is "".
* \param layer2 the second layer. This is an optionnal argument, default value is "".
2010-06-15 08:12:13 -05:00
*
* \return the rule.
*/
2012-03-26 10:39:08 -05:00
/*! \fn double Techno::getValue(const char* name, const char* layer1, const char* layer2)
2010-06-15 08:12:13 -05:00
* \brief returns the value of a rule uniquely identified by its name and layers.
*
* \param name the name of the rule.
2012-03-26 10:39:08 -05:00
* \param layer1 the first layer. This is an optionnal argument, default value is "".
* \param layer2 the second layer. This is an optionnal argument, default value is "".
2010-06-15 08:12:13 -05:00
*
* \return the value of the rule.
*/
2012-03-26 10:39:08 -05:00
/*! \fn std::string Techno::getValueAsString(const char* name, const char* layer1, const char* layer2)
2010-06-15 08:12:13 -05:00
* \brief returns a string corresponding to the value of a rule uniquely identified by its name and layers.
*
* \param name the name of the rule.
2012-03-26 10:39:08 -05:00
* \param layer1 the first layer. This is an optionnal argument, default value is "".
* \param layer2 the second layer. This is an optionnal argument, default value is "".
2010-06-15 08:12:13 -05:00
*
* \return the string corresponding to the value of the rule.
*
* \note this method is important for python module since to avoid rounding problems it is necessary to use Decimal object which is build based on a string.
*/
2012-03-26 10:39:08 -05:00
/*! \fn bool Techno::writeToFile(const char* filename)
2010-06-15 08:12:13 -05:00
* \brief writes the database to file.
*
* \param filename the destination file name.
*/
2012-03-26 10:39:08 -05:00
/*! \fn static Techno* Techno::readFromFile(const char* filename)
2010-06-15 08:12:13 -05:00
* \brief creates and returns a Techno object based on a database source file.
*
* \param filename the source file name.
*
* \return the newly created Techno.
*/
}