#include <extpin.h>
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 | |
UserInterface * | ui |
ptr to UI | |
std::string | extName |
identifier for UI access |
"external" analog pin, used for connecting UI to pins
Definition at line 63 of file extpin.h.
ExtAnalogPin::ExtAnalogPin | ( | unsigned int | startval, | |
UserInterface * | _ui, | |||
const char * | _extName, | |||
const char * | baseWindow | |||
) |
creates an ExtAnalogPin instance
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().
void ExtAnalogPin::SetInState | ( | const Pin & | p | ) | [virtual] |
Send new pin status to UI
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.
void ExtAnalogPin::SetNewValueFromUi | ( | const std::string & | s | ) | [virtual] |
Receives a external value from UI
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.
std::string ExtAnalogPin::extName [protected] |
identifier for UI access
Definition at line 67 of file extpin.h.
Referenced by ExtAnalogPin(), and SetInState().
UserInterface* ExtAnalogPin::ui [protected] |