PreCache NetInjector Documentation Center : PreCache NetInjector Application Development

Common Cases, Subscription — C++

   







Retrieving predefined attributes

— retrieving predefined attributes of various types


The subscriber class definition for the first tutorial included a single predefined attribute, Message:

pNotification->GetPredefinedAttr("Message",message);

The new subscriber class definition includes three more predefined attributes: UserName, Age, and Gender:

pNotification->GetPredefinedAttr("Name",name);

pNotification->GetPredefinedAttr("Age",age);

pNotification->GetPredefinedAttr("Gender",gender);

In the first part of this tutorial, Common Cases, Publication — C++, we set the values for these predefined attributes.