stec-platform
QXX::VQSubscriber Class Reference

#include <vqsubscriber.h>

Inheritance diagram for QXX::VQSubscriber:
Collaboration diagram for QXX::VQSubscriber:

Public Slots

void usl_RequestUpdate (VremVArray &values, int index)
 User should attach and use to send requests and update of values to gds.
 
void uslEventOccured (qint16 index, qint16 count, QVariant src)
 

Signals

void usi_UpdateValues (VremVArray &values, int index)
 User should connect to this signal to receive values.
 
void usi_SubscriberHasPublisher (int YesNo)
 User should connect to this signal to know if there is a publisher out there, if 1 has publihser attached, 0 no publisher yet.
 
void usi_ProceedureError (QString error)
 User should connect for proceedure Error.
 
void usi_SubscriptionError ()
 User should connect for subscription Error.
 
void usi_ArticleTypeFromPublisher (ArticleType type)
 User can connect to this to see the publisher's type.
 

Public Member Functions

 VQSubscriber (gds_codex *codex, QString subscription, QString alias, int index=0, int count=1, QObject *parent=NULL)
 Constructor that make a thread safe subscription. More...
 
virtual ~VQSubscriber ()
 parent More...
 
virtual void vf_UpdateValues (VremVArray &values, int index)
 User should overload this... this calls emit usi_UpdateValues, the user can override this and not use signal if he chooses. More...
 
void setPblId (PblId pbl)
 ........................................................... More...
 
void setLastKnownType (ArticleType type)
 Reserved for the CODEX, user should not use.
 
void setClassValid (int t)
 Reserved for the CODEX, user should not use.
 
void setProceedureError (QString error)
 Reserved for the CODEX, user should not use.
 
void setSubscriptionError ()
 Reserved for the CODEX, user should not use.
 
QString getName (void)
 Get the GdsName.
 

Protected Attributes

SubscriptionPlatformSubscription
 Platform Subscription.
 
QString srcToPlatform
 Src.
 
QString Name
 Subsciption Name.
 
DLock< int > Index
 Index to subscribe to.
 
DLock< int > Count
 Number of articles to subscribe to.
 
DLock< long > ID
 Id to handle created as unique, for gdsbridge to handle.
 
DLock< int > ClassValid
 Turns off Updates when pds is still coming up.
 
gds_codexCodex
 The codex to decode our messages.
 
DLock< ArticleType > LastKnowPublisherType
 Last know type that the publisher published to us.
 

Detailed Description

Creates a standard subscription. By proxy to the gds from the Linux system, this provides a subscription on the gdsbridge in the QNX 4 system. It follows all the rules necessary to be a gds subscriber.

!

Constructor & Destructor Documentation

◆ VQSubscriber()

QXX::VQSubscriber::VQSubscriber ( gds_codex codex,
QString  subscription,
QString  alias,
int  index = 0,
int  count = 1,
QObject parent = NULL 
)

Constructor that make a thread safe subscription.

Parameters
subscriptiondecoding codex for gdsbridge messages
aliassubscription name
indexplatform name
countdefault count
parentdefault count

◆ ~VQSubscriber()

QXX::VQSubscriber::~VQSubscriber ( )
virtual

parent

Destructor

Member Function Documentation

◆ setPblId()

void QXX::VQSubscriber::setPblId ( PblId  pbl)

...........................................................

This should not be called by inherited class, it is called from the MESSAGE function to complete the publication or subscription header.

Reserved for the CODEX, user should not use, This should not be called by inherited class, it is called from the MESSAGE function to complete the publication or subscription header.

◆ vf_UpdateValues()

void QXX::VQSubscriber::vf_UpdateValues ( VremVArray &  values,
int  index 
)
virtual

User should overload this... this calls emit usi_UpdateValues, the user can override this and not use signal if he chooses.

User should overload this...


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