MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / ~Config

Method ~Config

tools/modeling/codegen/model/Config.cpp:87–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85namespace OpenDDS { namespace Model {
86
87Config::~Config()
88{
89 for( ParticipantProfileMap::iterator current = this->participantProfileMap_.begin();
90 current != this->participantProfileMap_.end();
91 ++current
92 ) {
93 delete current->second;
94 }
95 this->participantProfileMap_.clear();
96
97 for( TopicProfileMap::iterator current = this->topicProfileMap_.begin();
98 current != this->topicProfileMap_.end();
99 ++current
100 ) {
101 delete current->second;
102 }
103 this->topicProfileMap_.clear();
104
105 for( PublisherProfileMap::iterator current = this->publisherProfileMap_.begin();
106 current != this->publisherProfileMap_.end();
107 ++current
108 ) {
109 delete current->second;
110 }
111 this->publisherProfileMap_.clear();
112
113 for( WriterProfileMap::iterator current = this->writerProfileMap_.begin();
114 current != this->writerProfileMap_.end();
115 ++current
116 ) {
117 delete current->second;
118 }
119 this->writerProfileMap_.clear();
120
121 for( SubscriberProfileMap::iterator current = this->subscriberProfileMap_.begin();
122 current != this->subscriberProfileMap_.end();
123 ++current
124 ) {
125 delete current->second;
126 }
127 this->subscriberProfileMap_.clear();
128
129 for( ReaderProfileMap::iterator current = this->readerProfileMap_.begin();
130 current != this->readerProfileMap_.end();
131 ++current
132 ) {
133 delete current->second;
134 }
135 this->readerProfileMap_.clear();
136}
137
138Config::Config(int& argc, ACE_TCHAR** argv)
139 : configured_(true)

Callers

nothing calls this directly

Calls 3

beginMethod · 0.45
endMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected