Cat
Public Types | Public Member Functions | List of all members
UsbMLI2cBus Class Reference

#include <inc/UsbMLI2cBus.h>

Inheritance diagram for UsbMLI2cBus:
Element Hierarchy Object Attrib

Public Types

typedef unsigned long U32
 
typedef unsigned short U16
 
typedef unsigned char U8
 
- Public Types inherited from Attrib
enum  Attribut {
  UNDEFINED, PASSIVE, ACTIVE, INTERFACE,
  IO, IODATA, ELEMENT, HARDWARE,
  PROCESSUS, SOFTWARE
}
 

Public Member Functions

 UsbMLI2cBus ()
 
virtual ~UsbMLI2cBus ()
 Standard constructor. More...
 
void help ()
 
virtual 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 ()
 

Additional Inherited Members

- Protected Attributes inherited from Element
Hierarchym_connection
 
- Protected Attributes inherited from Attrib
std::string m_attribString [10]
 

Detailed Description

Author
Date
2006-10-23

Definition at line 16 of file UsbMLI2cBus.h.

Member Typedef Documentation

◆ U16

typedef unsigned short UsbMLI2cBus::U16

Definition at line 19 of file UsbMLI2cBus.h.

◆ U32

typedef unsigned long UsbMLI2cBus::U32

Definition at line 18 of file UsbMLI2cBus.h.

◆ U8

typedef unsigned char UsbMLI2cBus::U8

Definition at line 20 of file UsbMLI2cBus.h.

Constructor & Destructor Documentation

◆ UsbMLI2cBus()

UsbMLI2cBus::UsbMLI2cBus ( )

Definition at line 16 of file UsbMLI2cBus.cpp.

References Object::setName(), and Object::setType().

16  {
17  setName("UsbMLI2cBus");
18  setType("UsbMLI2cBus");
19  }
void setName(std::string name)
Definition: Object.h:51
void setType(std::string type)
Definition: Object.h:52

◆ ~UsbMLI2cBus()

UsbMLI2cBus::~UsbMLI2cBus ( )
virtual

Standard constructor.

Destructor

Definition at line 23 of file UsbMLI2cBus.cpp.

23  {
24 
25 }

Member Function Documentation

◆ help()

void UsbMLI2cBus::help ( )
inlinevirtual

printout help for the element

Implements Element.

Definition at line 28 of file UsbMLI2cBus.h.

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

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

◆ init()

StatusCode UsbMLI2cBus::init ( )
virtual

init the component

Returns
void

Implements Element.

Definition at line 30 of file UsbMLI2cBus.cpp.

References StatusCode::FAILURE, Object::fatal(), Element::m_connection, Hierarchy::parent(), Element::setConnection(), StatusCode::SUCCESS, and Object::type().

Referenced by help().

30  {
31  if (0==m_connection){
32  if (0==this->parent()){
33  fatal("Cannot define connection for "+type()+". No parent found.",
34  "UsbMLI2cBus::init");
35  return StatusCode::FAILURE;
36  }
37  return setConnection(this->parent());
38  }
39  else return StatusCode::SUCCESS;
40 }
Hierarchy * m_connection
Definition: Element.h:70
StatusCode setConnection(Hierarchy *)
Definition: Element.cpp:55
Hierarchy * parent()
Definition: Hierarchy.h:28
void fatal(std::string mymsg)
Definition: Object.h:41
std::string type()
Definition: Object.h:29

◆ reset()

void UsbMLI2cBus::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 45 of file UsbMLI2cBus.h.

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

45  {
46  info("UsbMLI2cBus "+name()+" reset.","UsbMLI2cBus::reset");
47  };
void info(std::string mymsg)
Definition: Object.h:38
std::string name() const
Definition: Object.h:28

◆ update()

void UsbMLI2cBus::update ( )
inlinevirtual

Update the Element configuration from the actual hardware

Implements Element.

Definition at line 53 of file UsbMLI2cBus.h.

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

Referenced by AppFrame.AppFrame::deleteHardware(), 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().

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

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