OpenDDS  Snapshot(2023/04/28-20:55)
Public Member Functions | Public Attributes | List of all members
Update::TopicStrt< QosSeq, ACE_CString > Struct Template Reference
Collaboration diagram for Update::TopicStrt< QosSeq, ACE_CString >:
Collaboration graph
[legend]

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 54 of file PersistenceUpdater.cpp.

Constructor & Destructor Documentation

◆ TopicStrt()

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

Definition at line 62 of file PersistenceUpdater.cpp.

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

64  : domainId(topic.domainId),
65  topicId(topic.topicId),
66  participantId(topic.participantId)
67  {
68  assign(name, topic.name.c_str(), allocator);
69  assign(dataType, topic.dataType.c_str(), allocator);
70 
71  topicQos.first = TopicQos;
72  assign(topicQos.second, topic.topicQos.second, allocator);
73  }
const char * c_str(void) const
void assign(ACE_CString &to, const char *from, Update::PersistenceUpdater::ALLOCATOR *allocator)

Member Function Documentation

◆ cleanup()

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

Definition at line 75 of file PersistenceUpdater.cpp.

References ACE_String_Base< char >::fast_clear(), ACE_String_Base< char >::fast_rep(), ACE_Allocator_Adapter< class >::free(), and ACE_String_Base< char >::length().

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

76  {
77  if (name.length() > 0)
78  {
79  char* strMemory = const_cast<char*>(name.fast_rep());
80  name.fast_clear();
81  allocator->free(strMemory);
82  }
83  if (dataType.length() > 0)
84  {
85  char* strMemory = const_cast<char*>(dataType.fast_rep());
87  allocator->free(strMemory);
88  }
89 
90  allocator->free(topicQos.second.second);
91  }
const char * fast_rep(void) const
size_type length(void) const

Member Data Documentation

◆ dataType

Definition at line 59 of file PersistenceUpdater.cpp.

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

◆ domainId

Definition at line 55 of file PersistenceUpdater.cpp.

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

◆ name

Definition at line 58 of file PersistenceUpdater.cpp.

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

◆ participantId

Definition at line 57 of file PersistenceUpdater.cpp.

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

◆ topicId

Definition at line 56 of file PersistenceUpdater.cpp.

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

◆ topicQos


The documentation for this struct was generated from the following file: