ExtAnalogPin Class Reference

#include <extpin.h>

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

List of all members.

Public Member Functions

 ExtAnalogPin (unsigned int startval, UserInterface *_ui, const char *_extName, const char *baseWindow)
void SetNewValueFromUi (const std::string &)
void SetInState (const Pin &p)

Protected Attributes

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

Detailed Description

"external" analog pin, used for connecting UI to pins

Definition at line 63 of file extpin.h.


Constructor & Destructor Documentation

ExtAnalogPin::ExtAnalogPin ( unsigned int  startval,
UserInterface _ui,
const char *  _extName,
const char *  baseWindow 
)

creates an ExtAnalogPin instance

Parameters:
startval initial analog value
_ui pointer to UI instance
_extName identifier used for UI access
baseWindow window identifier from UI window

Definition at line 71 of file extpin.cpp.

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

Here is the call graph for this function:


Member Function Documentation

void ExtAnalogPin::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 86 of file extpin.cpp.

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

Here is the call graph for this function:

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

Receives a external value from UI

Parameters:
s value string

Implements ExternalType.

Definition at line 63 of file extpin.cpp.

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

Here is the call graph for this function:


Member Data Documentation

std::string ExtAnalogPin::extName [protected]

identifier for UI access

Definition at line 67 of file extpin.h.

Referenced by ExtAnalogPin(), and SetInState().

ptr to UI

Definition at line 66 of file extpin.h.

Referenced by ExtAnalogPin(), and SetInState().


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