Changeset 26:77a23a961301 in xplra for src/client/c/hu/varadiistvan/xplra/XPlane.h
- Timestamp:
- 02/07/13 18:58:46 (12 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/client/c/hu/varadiistvan/xplra/XPlane.h
r19 r26 35 35 #include <hu/varadiistvan/scpl/io/Waiter.h> 36 36 37 #include <set> 38 37 39 #include <inttypes.h> 38 40 … … 49 51 50 52 namespace hu { namespace varadiistvan { namespace xplra { 53 54 //------------------------------------------------------------------------------ 55 56 class MultiBuffer; 57 class MultiGetter; 58 class MultiSetter; 51 59 52 60 //------------------------------------------------------------------------------ … … 61 69 private: 62 70 /** 71 * Type for the set of multi-dataref buffers. 72 */ 73 typedef std::set<MultiBuffer*> multiBuffers_t; 74 75 /** 63 76 * The waiter to use. 64 77 */ … … 74 87 */ 75 88 scpl::io::DataStream* stream; 89 90 /** 91 * The buffers created by this object. 92 */ 93 multiBuffers_t multiBuffers; 76 94 77 95 public: … … 84 102 /** 85 103 * Destroy the object. If connected, the connection will be 86 * closed. 104 * closed. It destroys all existing buffers, so their references 105 * become invalid. 87 106 */ 88 107 ~XPlane() throw(); … … 102 121 */ 103 122 void disconnect() throw(); 123 124 /** 125 * Create a new getter of multiple datarefs and return a reference 126 * to it. 127 */ 128 MultiGetter& createMultiGetter() throw(); 129 130 /** 131 * Create a new setter of multiple datarefs and return a reference 132 * to it. 133 */ 134 MultiSetter& createMultiSetter() throw(); 135 136 /** 137 * Destroy the given getter or setter of multiple datarefs. As the 138 * buffer is unregistered, if it has been registered previously, 139 * and unregistration may fail, this function might throw an 140 * exception. 141 * 142 * @return if the buffer was found and could be destroyed 143 */ 144 bool destroyMultiBuffer(MultiBuffer& buffer) throw(Exception); 104 145 105 146 /**
Note:
See TracChangeset
for help on using the changeset viewer.