Changeset 40:ec5dde8a6ff6 in xplra for test/basictest.cc
- Timestamp:
- 02/14/13 18:21:47 (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/basictest.cc
r36 r40 31 31 #include <hu/varadiistvan/xplra/XPlane.h> 32 32 33 #include <hu/varadiistvan/scpl/Thread.h> 34 33 35 #include <cstdio> 34 36 #include <cstring> … … 39 41 using hu::varadiistvan::xplra::Exception; 40 42 using hu::varadiistvan::xplra::ProtocolException; 43 44 using hu::varadiistvan::scpl::Thread; 41 45 42 46 using std::string; … … 56 60 int xplmVersion = 0; 57 61 int xplraVersion = 0; 62 63 printf("Showing a message...\n"); 64 xplane.showMessage("[basictest] Starting tests", 5.0); 65 printf("\n"); 58 66 59 67 printf("Querying the versions...\n"); … … 242 250 } 243 251 252 printf("Preparing for the message tests, sleeping for 5 seconds...\n"); 253 Thread::sleep(5*1000); 254 255 printf("Showing a message for 10 seconds...\n"); 256 xplane.showMessage("[basictest] this message appears for 10 seconds", 10.0); 257 258 printf("Sleeping for 3 seconds...\n"); 259 Thread::sleep(3*1000); 260 261 printf("Showing another message interrupting the previous one for 3 seconds\n"); 262 xplane.showMessage("[basictest] but this message interrupts it, and is displayed for 3 seconds", 3.0); 263 264 printf("Sleeping for 5 seconds...\n"); 265 Thread::sleep(5*1000); 266 xplane.showMessage("[basictest] and the tests come to an end!", 5.0); 244 267 245 268 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.