stec-platform
QXX::gds_codex Class Reference
Inheritance diagram for QXX::gds_codex:
Collaboration diagram for QXX::gds_codex:

Public Slots

void slot_newpublication (QString newPub)
 
void slot_lostpublication (QString Pub)
 

Signals

void sigSendingData (int, QByteArray)
 Sending data to xmitter.
 
void sigNameFound (QString name, PblHdr hdr)
 Users should connect to this for new names.
 
void sigNameLost (QString name, PblHdr hdr)
 User should connect to this for names lost.
 
void sigRouterVersion (QString version)
 User should connect to this to receive the router version when it comes in.
 
void sigRouterVersionHeartBeat (QString beat)
 Heart beat pumps since connection.
 
void sigRouterReceived ()
 Message Received.
 
void sigMessageError (QString err)
 User can catch messages from qnx error here.
 
void sigSocketState (bool)
 Socket closed error, connection lost.
 
void sigLibError (QString err)
 Internal lib error.
 
void SignalLostRemoteDescriptor (int)
 new only when needed
 
void SignalLostRemotePublication (int, QString)
 
void SignalNewRemotePublication (int, QString)
 

Public Member Functions

 gds_codex (QnxSprur &Plugin, int UniqueID, QObject *parent=0)
 Constructor for codex of gds messages. More...
 
virtual ~gds_codex ()
 Destructor.
 
const QString GetVersion (void) const
 Gets the version of the gdsbridge on the other side.
 
int RegisterSubscriber (long id, VQSubscriber *sub)
 Inherited class should not call reqisters a subscriber to tell QNX it has come alive.
 
int UnRegisterSubscriber (long id)
 Inherited class should not call unregisters a subscriber to tell QNX it has died.
 
int RegisterPublisher (long id, VQPublisher *pub)
 Inherited class should not call registers a publisher to tell QNX it has come alive. More...
 
int UnRegisterPublisher (long id)
 Inherited class should not call unregisters a publisher to tell QNX it has died. More...
 
virtual void UserSendMessage (int length, void *msg)
 sends a message out the tcpip connection or other stream
 
long getGdsId (void)
 Gets a new HND.
 
void DataFromGds (VQSubscriber *sub, void *data, int index, int count, ArticleType type, size_t articleSize)
 Moved from subscriber to base class so one does it for all. More...
 
void DataFromGds (VQPublisher *sub, void *data, int index, int count, ArticleType type, size_t articleSize)
 Moved from subscriber to base class so one does it for all. More...
 
void RequestUpdate (long id, PblId pb, ArticleType type, VremVArray &values, int index)
 Request an update from a publisher on the gds or from publisher to all subscribers. More...
 
void CreationLock (void)
 Locks when a creation of a publication or subscription.
 
void CreationUnlock (void)
 Unlocks when a creation of a publication or subscription.
 
virtual void NameFound (QString &name, PblHdr *hdr)
 

Constructor & Destructor Documentation

◆ gds_codex()

QXX::gds_codex::gds_codex ( QnxSprur Plugin,
int  UniqueID,
QObject parent = 0 
)

Constructor for codex of gds messages.

needs to be moved for Wolfgang's version at CIP

Member Function Documentation

◆ DataFromGds() [1/2]

void QXX::gds_codex::DataFromGds ( VQPublisher sub,
void *  data,
int  index,
int  count,
ArticleType  type,
size_t  articleSize 
)

Moved from subscriber to base class so one does it for all.

moved from subscriber to base class so one does it for all.

break this out into steps, because debugging can be ugly later

◆ DataFromGds() [2/2]

void QXX::gds_codex::DataFromGds ( VQSubscriber sub,
void *  data,
int  index,
int  count,
ArticleType  type,
size_t  articleSize 
)

Moved from subscriber to base class so one does it for all.

break this out into steps, because debugging can be ugly later

◆ RegisterPublisher()

int QXX::gds_codex::RegisterPublisher ( long  id,
VQPublisher pub 
)

Inherited class should not call registers a publisher to tell QNX it has come alive.

registers a publisher to tell QNX it has come alive

◆ RequestUpdate()

void QXX::gds_codex::RequestUpdate ( long  id,
PblId  pb,
ArticleType  type,
VremVArray &  values,
int  index 
)

Request an update from a publisher on the gds or from publisher to all subscribers.

biggest QNX message is 64000 so

try to give the data back the same way the publisher sent it.

publisher can switch on the fly

◆ UnRegisterPublisher()

int QXX::gds_codex::UnRegisterPublisher ( long  id)

Inherited class should not call unregisters a publisher to tell QNX it has died.

unregisters a publisher to tell QNX it has died.


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