typedef long Update::DomainIdType |
Definition at line 31 of file UpdateDataTypes.h.
typedef OpenDDS::DCPS::RepoId Update::IdType |
Definition at line 32 of file UpdateDataTypes.h.
typedef std::pair<size_t, char*> Update::BinSeq |
Definition at line 33 of file UpdateDataTypes.h.
typedef std::pair<SpecificQos, BinSeq> Update::QosSeq |
Definition at line 34 of file UpdateDataTypes.h.
typedef struct TopicStrt< DDS::TopicQos &, std::string > Update::UTopic |
Definition at line 80 of file UpdateDataTypes.h.
typedef struct TopicStrt< QosSeq, std::string > Update::DTopic |
Definition at line 81 of file UpdateDataTypes.h.
typedef struct ParticipantStrt< DDS::DomainParticipantQos & > Update::UParticipant |
Definition at line 99 of file UpdateDataTypes.h.
typedef struct ParticipantStrt< QosSeq > Update::DParticipant |
Definition at line 100 of file UpdateDataTypes.h.
typedef struct ActorStrt< DDS::SubscriberQos &,DDS::DataReaderQos &,std::string,OpenDDS::DCPS::TransportLocatorSeq &,ContentSubscriptionInfo & > Update::URActor |
Definition at line 157 of file UpdateDataTypes.h.
typedef struct ActorStrt< DDS::PublisherQos &,DDS::DataWriterQos &,std::string,OpenDDS::DCPS::TransportLocatorSeq &,ContentSubscriptionInfo & > Update::UWActor |
Definition at line 163 of file UpdateDataTypes.h.
typedef struct ActorStrt< QosSeq, QosSeq, std::string,BinSeq, ContentSubscriptionBin > Update::DActor |
Definition at line 169 of file UpdateDataTypes.h.
typedef struct ImageData< UTopic *, UParticipant *, URActor *, UWActor * > Update::UImage |
Definition at line 185 of file UpdateDataTypes.h.
typedef struct ImageData< DTopic,DParticipant,DActor,DActor > Update::DImage |
Definition at line 186 of file UpdateDataTypes.h.
enum Update::ItemType |
enum Update::ActorType |
enum Update::SpecificQos |
Definition at line 21 of file UpdateDataTypes.h.
00021 { 00022 NoQos, 00023 ParticipantQos, 00024 TopicQos, 00025 DataWriterQos, 00026 PublisherQos, 00027 DataReaderQos, 00028 SubscriberQos 00029 };
void* Update::createIndex | ( | const std::string & | tag, | |
PersistenceUpdater::ALLOCATOR & | allocator, | |||
size_t | size, | |||
bool & | exists | |||
) |
Definition at line 226 of file PersistenceUpdater.cpp.
Referenced by Update::PersistenceUpdater::init().
00229 { 00230 void* index = 0; 00231 00232 // This is the easy case since if we find hash table in the 00233 // memory-mapped file we know it's already initialized. 00234 if (allocator.find(tag.c_str(), index) == 0) { 00235 exists = true; 00236 return index; 00237 00238 } else { 00239 exists = false; 00240 00241 ACE_ALLOCATOR_RETURN(index, allocator.malloc(size), 0); 00242 00243 if (allocator.bind(tag.c_str(), index) == -1) { 00244 allocator.free(index); 00245 index = 0; 00246 } 00247 } 00248 00249 return index; 00250 }
void Update::index_cleanup | ( | I * | index, | |
PersistenceUpdater::ALLOCATOR * | allocator | |||
) |
Definition at line 253 of file PersistenceUpdater.cpp.
Referenced by Update::PersistenceUpdater::init().
00255 { 00256 for (typename I::ITERATOR iter = index->begin() 00257 ; iter != index->end();) { 00258 typename I::ITERATOR current_iter = iter; 00259 iter++; 00260 00261 if (index->unbind((*current_iter).ext_id_, allocator) != 0) { 00262 ACE_ERROR((LM_ERROR, ACE_TEXT("Index unbind failed.\n"))); 00263 } 00264 } 00265 }