Update::TopicStrt< QosSeq, ACE_CString > Struct Template Reference

Collaboration diagram for Update::TopicStrt< QosSeq, ACE_CString >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TopicStrt (const DTopic &topic, PersistenceUpdater::ALLOCATOR *allocator)
void cleanup (PersistenceUpdater::ALLOCATOR *allocator)

Public Attributes

DDS::DomainId_t domainId
IdType topicId
IdType participantId
ACE_CString name
ACE_CString dataType
QosSeq topicQos

Detailed Description

template<>
struct Update::TopicStrt< QosSeq, ACE_CString >

Definition at line 55 of file PersistenceUpdater.cpp.


Constructor & Destructor Documentation

Update::TopicStrt< QosSeq, ACE_CString >::TopicStrt ( const DTopic topic,
PersistenceUpdater::ALLOCATOR allocator 
) [inline]

Definition at line 63 of file PersistenceUpdater.cpp.

References OpenDDS::DCPS::assign(), Update::TopicStrt< Q, S >::dataType, Update::TopicStrt< Q, S >::name, Update::TopicQos, and Update::TopicStrt< Q, S >::topicQos.

00065     : domainId(topic.domainId),
00066       topicId(topic.topicId),
00067       participantId(topic.participantId)
00068   {
00069     assign(name, topic.name.c_str(), allocator);
00070     assign(dataType, topic.dataType.c_str(), allocator);
00071 
00072     topicQos.first = TopicQos;
00073     assign(topicQos.second, topic.topicQos.second, allocator);
00074   }

Here is the call graph for this function:


Member Function Documentation

void Update::TopicStrt< QosSeq, ACE_CString >::cleanup ( PersistenceUpdater::ALLOCATOR allocator  )  [inline]

Definition at line 76 of file PersistenceUpdater.cpp.

References cleanup(), Update::TopicStrt< Q, S >::dataType, ACE_Allocator_Adapter< class >::free(), Update::TopicStrt< Q, S >::name, and Update::TopicStrt< Q, S >::topicQos.

Referenced by Update::PersistenceUpdater::destroy().

00077   {
00078     if (name.length() > 0)
00079     {
00080       char* strMemory = const_cast<char*>(name.fast_rep());
00081       name.fast_clear();
00082       allocator->free(strMemory);
00083     }
00084     if (dataType.length() > 0)
00085     {
00086       char* strMemory = const_cast<char*>(dataType.fast_rep());
00087       dataType.fast_clear();
00088       allocator->free(strMemory);
00089     }
00090 
00091     allocator->free(topicQos.second.second);
00092   }

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 60 of file PersistenceUpdater.cpp.

Referenced by Update::PersistenceUpdater::requestImage().

Definition at line 56 of file PersistenceUpdater.cpp.

Referenced by Update::PersistenceUpdater::requestImage().

Definition at line 59 of file PersistenceUpdater.cpp.

Referenced by Update::PersistenceUpdater::requestImage().

Definition at line 58 of file PersistenceUpdater.cpp.

Referenced by Update::PersistenceUpdater::requestImage().

Definition at line 57 of file PersistenceUpdater.cpp.

Referenced by Update::PersistenceUpdater::requestImage().


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 10 Aug 2018 for OpenDDS by  doxygen 1.6.1