Cat
Classes | Public Member Functions | Private Attributes | List of all members
Computer Class Reference

#include <Computer.h>

Inheritance diagram for Computer:
Element Hierarchy Object Attrib

Classes

class  Computer
 

Public Member Functions

 Computer ()
 Standard constructor. More...
 
virtual ~Computer ()
 Destructor. More...
 
void help ()
 
StatusCode init ()
 
void reset ()
 
void update ()
 
- Public Member Functions inherited from Element
 Element ()
 Standard constructor. More...
 
virtual ~Element ()
 Destructor. More...
 
void recursiveInitElement ()
 
void recursiveInitCommunications ()
 
StatusCode setConnection (Hierarchy *)
 
Hierarchyconnection ()
 
- Public Member Functions inherited from Hierarchy
 Hierarchy ()
 Standard constructor. More...
 
virtual ~Hierarchy ()
 Destructor. More...
 
void clear ()
 
void setParent (Hierarchy *parent)
 
Hierarchyparent ()
 
Hierarchyparent (std::string)
 
Hierarchyorigin ()
 
virtual void addChild (Hierarchy *element)
 
std::vector< Hierarchy * > children ()
 
Hierarchychild (std::string)
 
HierarchychildTyped (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 ()
 
- Public Member Functions inherited from Object
 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 ()
 
- Public Member Functions inherited from Attrib
 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

TestSuitem_testSuite
 

Additional Inherited Members

- Public Types inherited from Attrib
enum  Attribut {
  UNDEFINED, PASSIVE, ACTIVE, INTERFACE,
  IO, IODATA, ELEMENT, HARDWARE,
  PROCESSUS, SOFTWARE
}
 
- Protected Attributes inherited from Element
Hierarchym_connection
 
- Protected Attributes inherited from Attrib
std::string m_attribString [10]
 

Detailed Description

Author
Frédéric Machefert
Date
2006-10-26

Definition at line 26 of file Computer.h.

Constructor & Destructor Documentation

◆ Computer()

Standard constructor.

Definition at line 17 of file Computer.cpp.

References ProcDataBase::add(), Attrib::add(), application(), Attrib::ELEMENT, Attrib::HARDWARE, System::hostName(), m_testSuite, Application::procDb(), Object::setName(), Hierarchy::setParent(), and Object::setType().

17  {
19  setType ( "Computer" );
21  m_testSuite=new TestSuite();
23  setParent((Hierarchy*)0);
24 }
TestSuite * m_testSuite
Definition: Computer.h:60
void setParent(Hierarchy *parent)
Definition: Hierarchy.cpp:67
void add(int attribut)
Definition: Attrib.h:67
void setName(std::string name)
Definition: Object.h:51
StatusCode add(Processus *)
Application * application()
Definition: Tools.cpp:42
void setType(std::string type)
Definition: Object.h:52
ProcDataBase * procDb()
Definition: Application.h:111
const std::string & hostName()
Host name.
Definition: System.cpp:39

◆ ~Computer()

Computer::~Computer ( )
virtual

Destructor.

Definition at line 28 of file Computer.cpp.

References application(), m_testSuite, Application::procDb(), and ProcDataBase::remove().

28  {
30 }
TestSuite * m_testSuite
Definition: Computer.h:60
StatusCode remove(Processus *)
Application * application()
Definition: Tools.cpp:42
ProcDataBase * procDb()
Definition: Application.h:111

Member Function Documentation

◆ help()

void Computer::help ( )
inlinevirtual

printout help for the element

Implements Element.

Definition at line 37 of file Computer.h.

References Object::info(), and Object::name().

Referenced by export_obj().

37 { info("Computer "+name()+". No help.","Computer::help"); };
void info(std::string mymsg)
Definition: Object.h:38
std::string name() const
Definition: Object.h:28

◆ init()

StatusCode Computer::init ( )
inlinevirtual

init the component

Returns
void

Implements Element.

Definition at line 43 of file Computer.h.

References Object::info(), Object::name(), and StatusCode::SUCCESS.

Referenced by export_obj().

43  {
44  info("Computer "+name()+" initialization.","Computer::init");
45  return StatusCode::SUCCESS;
46  };
void info(std::string mymsg)
Definition: Object.h:38
std::string name() const
Definition: Object.h:28

◆ reset()

void Computer::reset ( )
inlinevirtual

Resets the Element so that is is in a standard and safe situation. Different from Element::init which configure the Element. Element::reset() is more an Emergency pull. It is often/usually called by the recursiveInitElement method at the start of the program.

Implements Element.

Definition at line 55 of file Computer.h.

References Object::info(), and Object::name().

Referenced by export_obj().

55 { info("Computer "+name()+" reset.","Computer::reset");};
void info(std::string mymsg)
Definition: Object.h:38
std::string name() const
Definition: Object.h:28

◆ update()

void Computer::update ( )
inlinevirtual

Update the Element configuration from the actual hardware

Implements Element.

Definition at line 60 of file Computer.h.

References Object::info(), m_testSuite, and Object::name().

Referenced by AppFrame.AppFrame::deleteHardware(), export_obj(), ConfFrame.ConfFrame::onChange(), GraphFrame.GraphFrame::onChange(), CfgFrame.CfgFrame::onChange(), ConfFrame.ConfFrame::onEdit(), AppFrame.AppFrame::onLoad(), ConfFrame.ConfFrame::onReLoad(), GraphFrame.GraphFrame::onReLoad(), CfgFrame.CfgFrame::onReLoad(), and AppFrame.AppFrame::onReLoad().

60 {info("Computer "+name()+". Nothing to do.","Computer::update");};
void info(std::string mymsg)
Definition: Object.h:38
std::string name() const
Definition: Object.h:28

Member Data Documentation

◆ m_testSuite

TestSuite* Computer::m_testSuite
private

Definition at line 60 of file Computer.h.

Referenced by Computer(), update(), and ~Computer().


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