Cat
|
#include <Attrib.h>
Public Types | |
enum | Attribut { UNDEFINED, PASSIVE, ACTIVE, INTERFACE, IO, IODATA, ELEMENT, HARDWARE, PROCESSUS, SOFTWARE } |
Public Member Functions | |
Attrib () | |
Standard constructor. More... | |
virtual | ~Attrib () |
Destructor. More... | |
bool | is (int attribut) |
void | add (int attribut) |
void | remove (int attribut) |
std::string | attributs () |
Protected Attributes | |
std::string | m_attribString [10] |
Private Attributes | |
std::vector< int > | m_attributs |
Define the attributs of objects. Define a basic set of attributs for class objects;
enum Attrib::Attribut |
Enumerator | |
---|---|
UNDEFINED | |
PASSIVE | |
ACTIVE | |
INTERFACE | |
IO | |
IODATA | |
ELEMENT | |
HARDWARE | |
PROCESSUS | |
SOFTWARE |
Definition at line 29 of file Attrib.h.
Attrib::Attrib | ( | ) |
Standard constructor.
Definition at line 31 of file Attrib.cpp.
References add(), m_attribString, m_attributs, and UNDEFINED.
|
virtual |
|
inline |
Add an attribut
Definition at line 67 of file Attrib.h.
References m_attributs, and UNDEFINED.
Referenced by A3PE::A3PE(), Attrib(), SpecsMezzanine::cmdline(), Computer::Computer(), CU_v1::CU_v1(), export_obj(), FEB_v1::FEB_v1(), FePGA::FePGA(), ICECALv3::ICECALv3(), ICPhaser::ICPhaser(), Application::initialize(), Interface::Interface(), IOdata::IOdata(), IOobject::IOobject(), MSOxxxx::MSOxxxx(), Phaser::Phaser(), Processus::Processus(), Proto40MHz_v1::Proto40MHz_v1(), remove(), SeqPGA::SeqPGA(), TestSPI::setAddress(), TestI2C::setAddress(), SpecsSlave::setAddress(), SpecsMaster::SpecsMaster(), SpecsSlave::SpecsSlave(), and FePGA::transmitSpi().
std::string Attrib::attributs | ( | ) |
Definition at line 54 of file Attrib.cpp.
References images::index, m_attribString, and m_attributs.
Referenced by export_obj(), and remove().
|
inline |
Test for an attribut
Definition at line 50 of file Attrib.h.
References m_attributs.
Referenced by export_obj(), and Element::setConnection().
|
inline |
Remove an attribut
Definition at line 86 of file Attrib.h.
References add(), attributs(), m_attributs, and UNDEFINED.
Referenced by export_obj().
|
protected |
Definition at line 105 of file Attrib.h.
Referenced by Attrib(), and attributs().
|
private |