VR-Vantage 2.2 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Functions
makVrfVrlinkExtToolkit Namespace Reference

Classes

class  DtGenericAttributeDecoder
class  DtGenericAttributeEncoder
class  DtGenericAttributeInfo
class  DtGenericAttributeStateRepository
 This template class can be used to extend any existing State Repository class to add the ability to process generic attributes from an extended subclass of the FOM class handled by the original SR class. More...

Functions

template<typename StateRepType >
void setAttributeNameToHandleMap (DtObjClassDesc *desc)
 Sets the attribute name to handle map for the generic state rep for the given FOM class.
bool areClassNamesEquivalent (const DtString &name1, const DtString &name2)
template<typename StateRepType , typename EncoderType , typename PublisherType , typename ReflectedObjType >
void registerGenericAttributeClass (const DtString &fullClassName, const DtString &publisherName, const DtString &reflListName, DtExerciseConn *exConn)
 Registers the necessary state rep creators, encoder, decoder, and checker functions for the given FOM class which extends a supported VR-Link class.
template<typename StateRepType , typename EncoderType , typename PublisherType , typename ReflectedObjType >
void registerGenericAttributeClass (const std::vector< DtString > &fullClassNames, const DtString &publisherName, const DtString &reflListName, DtFomMapper::DtObjectClassChooser classChooser, DtExerciseConn *exConn)
 Registers the necessary state rep creators, encoder, decoder, and checker functions for the given FOM classes which extend a supported VR-Link class.

Function Documentation

template<typename StateRepType >
void makVrfVrlinkExtToolkit::setAttributeNameToHandleMap ( DtObjClassDesc *  desc)

Sets the attribute name to handle map for the generic state rep for the given FOM class.

References makVrfVrlinkExtToolkit::DtGenericAttributeStateRepository< BaseSR >::setAttributeNameToHandleMap().

bool makVrfVrlinkExtToolkit::areClassNamesEquivalent ( const DtString &  name1,
const DtString &  name2 
)
template<typename StateRepType , typename EncoderType , typename PublisherType , typename ReflectedObjType >
void makVrfVrlinkExtToolkit::registerGenericAttributeClass ( const DtString &  fullClassName,
const DtString &  publisherName,
const DtString &  reflListName,
DtExerciseConn *  exConn 
)

Registers the necessary state rep creators, encoder, decoder, and checker functions for the given FOM class which extends a supported VR-Link class.

All attributes of the subclass will be stored in a generic attribute list without encoding or decoding. This function should be used to extend VR-Link classes which support only one FOM class (e.g. AggregateEntity).

References areClassNamesEquivalent(), and makVrfVrlinkExtToolkit::DtGenericAttributeEncoder< StateRepType, EncoderType >::create().

template<typename StateRepType , typename EncoderType , typename PublisherType , typename ReflectedObjType >
void makVrfVrlinkExtToolkit::registerGenericAttributeClass ( const std::vector< DtString > &  fullClassNames,
const DtString &  publisherName,
const DtString &  reflListName,
DtFomMapper::DtObjectClassChooser  classChooser,
DtExerciseConn *  exConn 
)

Registers the necessary state rep creators, encoder, decoder, and checker functions for the given FOM classes which extend a supported VR-Link class.

All attributes of the subclasses will be stored in a generic attribute list without encoding or decoding. This function should be used to extend VR-Link classes which support many FOM classes (e.g. PhysicalEntity and its subclasses). The FOM class published by a publisher is chosen by a chooser function which must be supplied

References areClassNamesEquivalent(), and makVrfVrlinkExtToolkit::DtGenericAttributeEncoder< StateRepType, EncoderType >::create().



Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)