ExtPin Class Reference

#include <extpin.h>

Inheritance diagram for ExtPin:
Inheritance graph
[legend]
Collaboration diagram for ExtPin:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ExtPin (T_Pinstate ps, UserInterface *_ui, const char *_extName, const char *baseWindow)
void SetNewValueFromUi (const std::string &s)
void SetInState (const Pin &p)

Protected Attributes

UserInterfaceui
 ptr to UI
std::string extName
 identifier for UI access

Detailed Description

"external" pin, used for connecting UI to pins

Definition at line 37 of file extpin.h.


Constructor & Destructor Documentation

ExtPin::ExtPin ( T_Pinstate  ps,
UserInterface _ui,
const char *  _extName,
const char *  baseWindow 
)

creates an ExtPin instance

Parameters:
ps pin status
_ui pointer to UI instance
_extName identifier used for UI access
baseWindow window identifier from UI window

Definition at line 34 of file extpin.cpp.

References UserInterface::AddExternalType(), extName, Pin::outState, ui, and UserInterface::Write().

Here is the call graph for this function:


Member Function Documentation

void ExtPin::SetInState ( const Pin p  )  [virtual]

Send new pin status to UI

Parameters:
p pin, for which status change is to send

Reimplemented from Pin.

Definition at line 50 of file extpin.cpp.

References extName, UserInterface::SendUiNewState(), and ui.

Here is the call graph for this function:

void ExtPin::SetNewValueFromUi ( const std::string &  s  )  [virtual]

Receives a external value from UI

Parameters:
s value string

Implements ExternalType.

Definition at line 54 of file extpin.cpp.

References Net::CalcNet(), Pin::connectedTo, and Pin::outState.

Here is the call graph for this function:


Member Data Documentation

std::string ExtPin::extName [protected]

identifier for UI access

Definition at line 41 of file extpin.h.

Referenced by ExtPin(), and SetInState().

UserInterface* ExtPin::ui [protected]

ptr to UI

Definition at line 40 of file extpin.h.

Referenced by ExtPin(), and SetInState().


The documentation for this class was generated from the following files:
Generated on Sun Feb 12 16:51:05 2012 for Simulavr by  doxygen 1.6.3