sqmod: CCellConnection

CCellConnection

Functions

int Connect (const sqbind::stdString &sIp, int nLoadTags)
 Connect to device.
int Destroy ()
 Closes the connection and releases resources.
sqbind::stdString DumpCache ()
 Dump the cache to a string.
sqbind::stdString GetBackplaneData ()
 Returns a string describing backplane data.
sqbind::stdString GetIp ()
 Returns the ip address of the currently connected device.
oex::oexBOOL GetItemValue (int nType, unsigned char *pData, int nSize, int nBit, sqbind::stdString &sRet)
 Returns a string representation of the specified item.
sqbind::stdString GetLastError ()
 Returns information about the last error.
int GetTypeFromName (const sqbind::stdString &sType)
 Returns the integer type from the type name.
oex::oexCSTR GetTypeName (int nType)
 Returns a string describing the tag type.
int GetTypeSize (int nType)
 Returns the size of the type.
int IsConnected ()
 Returns non-zero if connected.
int IsResponding ()
 Returns non-zero if device is not responding.
int LoadTags ()
 Loads the tag database from the target.
oex::oexBOOL ParseTag (const sqbind::stdString &sTag, sqbind::stdString &sName, int &nProgram, int &nTag, int &nIndex, int &nOffset, int &nSize, int &nType, int &nBit)
 Parses a tag name into components.
sqbind::CSqMulti ReadTag (const sqbind::stdString &sTag)
 Read the specified tag.
int ReleaseTags ()
 Releases tags and resources.
void SetCacheLimit (int n)
 Get / Set the cache limit.
sqbind::stdString SetLastError (const sqbind::stdString sErr)
 Sets information about the last error.
sqbind::CSqMulti * tags ()
 Returns a list of tags to squirrel.
sqbind::CSqMulti TagToMap (_tag_detail *pTd)
 Creates a map from tag details structure.
sqbind::CSqMulti * tmpl ()
 Returns the tag template map.
void VerifyTemplate ()
 Verifys values in the squirrel template map.