Changeset 19:280541440d22 in xplra for src/client
- Timestamp:
- 02/03/13 13:46:17 (12 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- src/client/c/hu/varadiistvan/xplra
- Files:
-
- 4 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/client/c/hu/varadiistvan/xplra/Exception.h
r14 r19 177 177 * Construct the exception 178 178 */ 179 NotConnectedException(); 179 NotConnectedException() throw(); 180 }; 181 182 //------------------------------------------------------------------------------ 183 184 /** 185 * Exception thrown when we want to get or set a dataref in a 186 * MultiBuffer into or from a value of the wrong type. 187 */ 188 class TypeMismatchException : public Exception 189 { 190 public: 191 /** 192 * Construct the exception 193 */ 194 TypeMismatchException() throw(); 195 }; 196 197 //------------------------------------------------------------------------------ 198 199 /** 200 * Exception thrown when we want to get or set a dataref with an 201 * invalid ID. 202 */ 203 class InvalidIDException : public Exception 204 { 205 public: 206 /** 207 * Construct the exception 208 */ 209 InvalidIDException() throw(); 180 210 }; 181 211 … … 221 251 //------------------------------------------------------------------------------ 222 252 223 inline NotConnectedException::NotConnectedException() :253 inline NotConnectedException::NotConnectedException() throw() : 224 254 Exception("xplra::NotConnectedException: not connected to the simulator") 255 { 256 } 257 258 //------------------------------------------------------------------------------ 259 //------------------------------------------------------------------------------ 260 261 inline TypeMismatchException::TypeMismatchException() throw() : 262 Exception("xplra::TypeMismatchException") 263 { 264 } 265 266 //------------------------------------------------------------------------------ 267 //------------------------------------------------------------------------------ 268 269 inline InvalidIDException::InvalidIDException() throw() : 270 Exception("xplra::InvalidIDException") 225 271 { 226 272 } -
src/client/c/hu/varadiistvan/xplra/Makefile.am
r14 r19 4 4 5 5 libxplra_la_SOURCES=\ 6 Exception.cc \ 6 7 XPlane.cc \ 7 Exception.cc \ 8 MultiBuffer.cc \ 9 MultiGetter.cc \ 8 10 xplra.cc 9 11 … … 16 18 include_xplradir=$(includedir)/hu/varadiistvan/xplra 17 19 include_xplra_HEADERS=\ 20 Exception.h \ 18 21 XPlane.h \ 19 Exception.h \ 22 MultiBuffer.h \ 23 MultiGetter.h \ 20 24 xplra.h -
src/client/c/hu/varadiistvan/xplra/XPlane.cc
r18 r19 53 53 //------------------------------------------------------------------------------ 54 54 55 inlinevoid XPlane::checkStream() throw(NotConnectedException, IOException)55 void XPlane::checkStream() throw(NotConnectedException, IOException) 56 56 { 57 57 if (stream==0) { … … 91 91 //------------------------------------------------------------------------------ 92 92 93 inlinevoid XPlane::checkResult() throw(ProtocolException)93 void XPlane::checkResult() throw(ProtocolException) 94 94 { 95 95 uint8_t result = stream->readU8(); -
src/client/c/hu/varadiistvan/xplra/XPlane.h
r18 r19 270 270 void setArray(const char* name, uint8_t type, size_t length, 271 271 size_t offset) throw(Exception); 272 273 friend class MultiBuffer; 274 friend class MultiGetter; 275 friend class MultiSetter; 272 276 }; 273 277
Note:
See TracChangeset
for help on using the changeset viewer.