Vlaxicon
Public Member Functions | Protected Member Functions | Protected Attributes

ObjectBase Class Reference

Inheritance diagram for ObjectBase:
CheckboxTool ChoiceTool PlotTool SliderTool StaticTextTool UniversalTool

List of all members.

Public Member Functions

 ObjectBase (wxWindow *parent, ObjectBaseShape *parentShape, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL, const wxString &name=wxT("panel"))
void ReconnectKeyboard ()
bool SetPlugin ()
bool InitCom ()
bool IsComInit ()
void CloseCom ()
bool IsComError ()
unsigned char * GetCArrQueryValue ()
double GetDQueryValue () const
const wxString & GetSQueryValue () const
int GetDataLength () const
int DoSCPICommand (wxString sParam=wxT(""))

Protected Member Functions

void OnKeyDown (wxKeyEvent &event)

Protected Attributes

wxWindow * m_pParent
ObjectBaseShapem_pParentShape
double dQueryValue
wxString sQueryValue
double * dArrQueryValue
unsigned char * cArrQueryValue
bool bComError
int data_length
bool bComInit
IPlugin * comPlugin

Constructor & Destructor Documentation

ObjectBase::ObjectBase ( wxWindow *  parent,
ObjectBaseShape parentShape,
wxWindowID  id = wxID_ANY,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxTAB_TRAVERSAL,
const wxString &  name = wxT("panel") 
)

constructor of object base

Parameters:
parentparent window
parentShapeparent shape
idwindow id
posposition
sizesize
stylestyle
namename

Member Function Documentation

void ObjectBase::CloseCom ( )

close connection to instrument

int ObjectBase::DoSCPICommand ( wxString  sParam = wxT(""))

execute the SCPI command

Returns:
data length fo answer
unsigned char* ObjectBase::GetCArrQueryValue ( ) [inline]

returns answer from instrument on unsigned char query

Returns:
answer
int ObjectBase::GetDataLength ( ) const [inline]

returns length of data return from instrument

Returns:
data length
double ObjectBase::GetDQueryValue ( ) const [inline]

returns answer from instrument on double query

Returns:
answer
const wxString& ObjectBase::GetSQueryValue ( ) const [inline]

returns answer from instrument on string query

Returns:
answer
bool ObjectBase::InitCom ( )

initiates connection to instrument

Returns:
success
bool ObjectBase::IsComError ( ) [inline]

check errors during communication with instrument return true if is error false if not

bool ObjectBase::IsComInit ( ) [inline]

returns if connection is init

Returns:
true if connetion is init false if not
void ObjectBase::OnKeyDown ( wxKeyEvent &  event) [protected]

event handler on key press

void ObjectBase::ReconnectKeyboard ( )

reconnect keyboard events from control to shape

bool ObjectBase::SetPlugin ( )

sets specific plugin

Returns:
success

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