VR-Exchange 2.9 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
underwaterAcousticsPublisherManager.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2013 MAK Technologies, Inc.
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <disBroker/dllExport.h>
13 #include <vlutil/vlString.h>
14 #include <map>
15 
16 class DtUnderwaterAcousticsPublisher;
17 
18 namespace MAKVrExchange
19 {
20 
21  namespace DtDisBroker
22  {
23 
24  class DtUnderwaterAcousticsPublisherManager;
25 
27  typedef DtUnderwaterAcousticsPublisherManager* (*DtUnderwaterAcousticsPublisherManagerCreator)();
28 
36  {
37  public:
38 
41  typedef DtString PortalId;
42 
43  public:
44 
47 
50 
53  virtual DtUnderwaterAcousticsPublisher* findPublisher(
54  const PortalId& hostId ) const;
55 
62  virtual bool registerPublisher( const PortalId& hostId,
63  DtUnderwaterAcousticsPublisher* publisher );
64 
70  virtual void checkoutPublisher(
71  DtUnderwaterAcousticsPublisher* publisher );
72 
77  virtual void releasePublisher( const PortalId& hostId );
78 
80  virtual int numPublishers() const;
81 
83  virtual void tickPublishers();
84 
85  protected:
86 
88  typedef std::map<PortalId,DtUnderwaterAcousticsPublisher*> PortalIdToPublisherMap;
90 
92  typedef std::map<DtUnderwaterAcousticsPublisher*,int> PublisherUsageCountsMap;
94 
95  };
96 
97  }
98 }
PublisherUsageCountsMap myPublisherUsageCountsMap
Definition: underwaterAcousticsPublisherManager.h:93
PortalIdToPublisherMap myPortalIdToPublisherMap
Definition: underwaterAcousticsPublisherManager.h:89
std::map< DtUnderwaterAcousticsPublisher *, int > PublisherUsageCountsMap
This map maps publishers to the count of how many objects are using it.
Definition: underwaterAcousticsPublisherManager.h:92
std::map< PortalId, DtUnderwaterAcousticsPublisher * > PortalIdToPublisherMap
This map maps host ids to the publisher they&#39;re associated with.
Definition: underwaterAcousticsPublisherManager.h:88
#define DT_DLL_DISBROKER
Definition: brokers/disBroker/disBroker/dllExport.h:20
DtString PortalId
A typedef to make it easier to see what kind of ID this is.
Definition: underwaterAcousticsPublisherManager.h:41
Keeps track of DtUnderwaterAcousticsPublishers by host id.
Definition: underwaterAcousticsPublisherManager.h:35

Document ID: Generated on Tue Jun 25 16:45:35 EDT 2024 from SVN revision 267383
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)