Cat
|
#include <inc/Hierarchy.h>
Public Member Functions | |
Hierarchy () | |
Standard constructor. More... | |
virtual | ~Hierarchy () |
Destructor. More... | |
void | clear () |
void | setParent (Hierarchy *parent) |
Hierarchy * | parent () |
Hierarchy * | parent (std::string) |
Hierarchy * | origin () |
virtual void | addChild (Hierarchy *element) |
std::vector< Hierarchy * > | children () |
Hierarchy * | child (std::string) |
Hierarchy * | childTyped (std::string) |
unsigned long | numberOfChildren () |
bool | hasChildren () |
void | delChild (Hierarchy *) |
void | delChild (std::string) |
std::string | path (std::string=std::string("")) |
std::string | pathTyped (std::string=std::string("")) |
void | tree (std::string indent=std::string("")) |
void | tree () |
![]() | |
Object () | |
Standard constructor. More... | |
virtual | ~Object () |
Destructor. More... | |
std::string | name () const |
std::string | type () |
unsigned char | id () |
std::string | title () |
void | msgSvc (int level, std::string msg, std::string name) |
void | msg (std::string mymsg) |
void | verbose (std::string mymsg) |
void | debug (std::string mymsg) |
void | info (std::string mymsg) |
void | warning (std::string mymsg) |
void | error (std::string mymsg) |
void | fatal (std::string mymsg) |
void | msg (std::string mymsg, std::string name) |
void | verbose (std::string mymsg, std::string name) |
void | debug (std::string mymsg, std::string name) |
void | info (std::string mymsg, std::string name) |
void | warning (std::string mymsg, std::string name) |
void | error (std::string mymsg, std::string name) |
void | fatal (std::string mymsg, std::string name) |
void | setName (std::string name) |
void | setType (std::string type) |
void | setId (unsigned char id) |
void | setTitle (std::string title) |
void | setDllName (std::string dllName) |
std::string | dllName () |
![]() | |
Attrib () | |
Standard constructor. More... | |
virtual | ~Attrib () |
Destructor. More... | |
bool | is (int attribut) |
void | add (int attribut) |
void | remove (int attribut) |
std::string | attributs () |
Private Attributes | |
Hierarchy * | m_parent |
Hierarchy * | m_origin |
std::vector< Hierarchy * > | m_children |
Additional Inherited Members | |
![]() | |
enum | Attribut { UNDEFINED, PASSIVE, ACTIVE, INTERFACE, IO, IODATA, ELEMENT, HARDWARE, PROCESSUS, SOFTWARE } |
![]() | |
std::string | m_attribString [10] |
Hierarchy::Hierarchy | ( | ) |
|
virtual |
Destructor.
Definition at line 24 of file Hierarchy.cpp.
References Object::debug(), delChild(), Object::name(), and parent().
|
virtual |
Definition at line 83 of file Hierarchy.cpp.
References Object::debug(), m_children, Object::name(), and setParent().
Referenced by A3PE::A3PE(), SpecsMezzanine::addBus(), SpecsSlave::addI2c(), Application::create(), CU_v1::CU_v1(), export_obj(), FEB_v1::FEB_v1(), FePGA::FePGA(), ICECALv3::ICECALv3(), ICPhaser::ICPhaser(), FePGA::MakeRAM(), FePGA::MakeRegister(), origin(), Phaser::Phaser(), Proto40MHz_v1::Proto40MHz_v1(), SeqPGA::SeqPGA(), SpecsMezzanine::SpecsMezzanine(), UsbI2cBus::UsbI2cBus(), and UsbSpiBus::UsbSpiBus().
Hierarchy * Hierarchy::child | ( | std::string | path | ) |
Definition at line 133 of file Hierarchy.cpp.
References child(), children(), Object::name(), origin(), parent(), path(), and Object::warning().
Referenced by Application::cd(), child(), children(), and export_obj().
|
inline |
Definition at line 33 of file Hierarchy.h.
References child(), childTyped(), delChild(), hasChildren(), m_children, numberOfChildren(), path(), pathTyped(), and tree().
Referenced by child(), childTyped(), export_obj(), SpecsSlave::recursiveInitCommunications(), Element::recursiveInitCommunications(), Element::recursiveInitElement(), Application::setConfig(), and tree().
Hierarchy * Hierarchy::childTyped | ( | std::string | path | ) |
Definition at line 239 of file Hierarchy.cpp.
References children(), m_origin, Object::name(), parent(), path(), and Object::warning().
Referenced by children(), and export_obj().
void Hierarchy::clear | ( | ) |
Definition at line 35 of file Hierarchy.cpp.
References delChild(), Object::info(), m_children, and Object::name().
Referenced by export_obj().
void Hierarchy::delChild | ( | Hierarchy * | element | ) |
Definition at line 92 of file Hierarchy.cpp.
References Object::debug(), and m_children.
Referenced by children(), clear(), export_obj(), and ~Hierarchy().
void Hierarchy::delChild | ( | std::string | n | ) |
bool Hierarchy::hasChildren | ( | ) |
Definition at line 303 of file Hierarchy.cpp.
References m_children.
Referenced by children(), and export_obj().
unsigned long Hierarchy::numberOfChildren | ( | ) |
Definition at line 125 of file Hierarchy.cpp.
References m_children.
Referenced by children(), and export_obj().
|
inline |
Definition at line 30 of file Hierarchy.h.
References addChild(), and m_origin.
Referenced by child(), export_obj(), and setParent().
|
inline |
Definition at line 28 of file Hierarchy.h.
References m_parent.
Referenced by child(), childTyped(), export_obj(), UsbMLSpiBus::init(), UsbMLI2cBus::init(), UsbI2cBus::init(), UsbSpiBus::init(), IOobject::init(), parent(), path(), pathTyped(), Element::setConnection(), setParent(), SpecsInterface::specsMaster(), SpecsInterface::specsMasterDevice(), SpecsInterface::specsSlave(), SpecsInterface::specsSlaveDevice(), and ~Hierarchy().
Hierarchy * Hierarchy::parent | ( | std::string | type | ) |
Definition at line 327 of file Hierarchy.cpp.
References parent(), and Object::type().
std::string Hierarchy::path | ( | std::string | str = std::string("") | ) |
Definition at line 344 of file Hierarchy.cpp.
References m_parent, Object::name(), parent(), and path().
Referenced by child(), children(), childTyped(), export_obj(), path(), UsbFTMLInterface::usbReadU16(), UsbFTMLInterface::usbReadU32(), UsbFTMLInterface::usbReadU8(), UsbFTMLInterface::usbWriteRead(), UsbFTMLInterface::usbWriteU16(), UsbFTMLInterface::usbWriteU32(), and UsbFTMLInterface::usbWriteU8().
std::string Hierarchy::pathTyped | ( | std::string | str = std::string("") | ) |
Definition at line 356 of file Hierarchy.cpp.
References m_parent, Object::name(), parent(), pathTyped(), and Object::type().
Referenced by children(), export_obj(), and pathTyped().
void Hierarchy::setParent | ( | Hierarchy * | parent | ) |
Definition at line 67 of file Hierarchy.cpp.
References m_origin, m_parent, origin(), and parent().
Referenced by SpecsMezzanine::addBus(), addChild(), SpecsSlave::addI2c(), Computer::Computer(), Application::create(), export_obj(), and SpecsMezzanine::SpecsMezzanine().
void Hierarchy::tree | ( | std::string | indent = std::string("") | ) |
Definition at line 310 of file Hierarchy.cpp.
References children(), Object::info(), Object::msgSvc(), Object::name(), MsgSvc::NONE, and Object::type().
|
inline |
Definition at line 46 of file Hierarchy.h.
References m_parent, and tree().
Referenced by children(), export_obj(), and tree().
|
private |
Definition at line 53 of file Hierarchy.h.
Referenced by addChild(), children(), clear(), delChild(), hasChildren(), and numberOfChildren().
|
private |
Definition at line 52 of file Hierarchy.h.
Referenced by childTyped(), Hierarchy(), origin(), and setParent().
|
private |
Definition at line 46 of file Hierarchy.h.
Referenced by parent(), path(), pathTyped(), setParent(), and tree().