Commit Graph

19 Commits

Author SHA1 Message Date
Jason Watkins
dbeabc6779 Updated PrintToLog method in Message.cpp to handle all current message types and to work reliably across platforms. 2015-08-20 09:46:13 -07:00
Jason Watkins
dcdcf22751 Fix compilation issues on Linux and update Linux binaries.
- The Linux binaries for the 1.1 release were built on the wrong branch, and so include none of the v1.1 changes. This patch fixes some minor compiler errors and includes properly updated binaries.
2015-06-01 12:50:36 -07:00
Jason Watkins
784d2ea2bb Added message magic number to debug log. 2015-05-20 16:32:40 -07:00
Chris Teubert
2889f4e3ce Fixed sending string to FormatLine
varargs does not support type String.
2015-05-20 10:18:13 -07:00
Jason Watkins
748d37c4d9 Fixed logging bug with varargs and dialed back excessive trace logging in Message. 2015-05-14 14:23:11 -07:00
Jason Watkins
bd0c15bede Improved trace logging. 2015-05-12 15:47:55 -07:00
Jason Watkins
c0efe91b60 Improved consistency of comment formatting. 2015-05-11 15:17:04 -07:00
Jason Watkins
a2c1f83629 Refactored logging.
- Logging levels are now named preprocessor defines
 - Logging level is now a parameter for WriteLine/FormatLine
2015-05-11 14:51:47 -07:00
Jason Watkins
ceba580450 Addressed issues found by Google code lint.
Fixed:
 - Removed trailing whitespace.
 - Removed out of date TODO's.
 - Added #include<algorithm> to DataManager.cpp
 - Reordered includes to include C system headers before C++ system headers.
 - Added username to TODO's
 - Renamed include guards to use full project name as prefix.
 - Made methods and parameters const where possible.
 - Made UDPSocket constructor explicit.

Won't Fix:
 - snprintf is introduced in C++11.
 - Trailing comments at the end of namespace & header guards
 - Did not re-inlude headers already included by the matching XPC header.
 - localtime is fine since X-Plane is not multithreaded at all on the plugin side.
 - Linter confuses #elif with parens as a function call.
 - namespace indentation
2015-05-08 15:18:24 -07:00
Jason Watkins
aeceb87f1d Merge latest changes from release-1.0.1
Removing all C++11 features touches many parts of many files, so better merge the changes into develop ASAP to prevent future conflicts.
2015-05-05 08:33:54 -07:00
Jason Watkins
796fd0f7aa Fix for Linux builds 2015-05-04 16:09:45 -07:00
Chris Teubert
99e94015c4 Added newline at end of file 2015-05-04 11:33:12 -07:00
Jason Watkins
b243306866 Added namespace qualifiers for memcpy in Message logging. 2015-04-30 11:03:42 -07:00
Jason Watkins
9109056437 Improved data logging. 2015-04-24 10:30:35 -07:00
Jason Watkins
bb5c6d8a28 Merge branch 'feature/consistency' into develop 2015-04-21 15:58:44 -07:00
Jason Watkins
5ee49c7d81 Updated plugin.
- Removed dependency on C client.
 - The plugin now responds to client requests on the same port used to establish the connection.
Removed C client dependency from plugin.
2015-04-17 10:56:03 -07:00
Jason Watkins
1a3f658774 Changed types from fixed width types in stdint to language primitive types guaranteed to be at least as big. 2015-04-16 10:13:18 -07:00
Jason Watkins
6c51fa476e Refactored dataref manipulation operations to the DataManager class. 2015-04-13 15:53:38 -07:00
Jason Watkins
547eb4de18 Refactored various message-related operations into the Message class.
- Replaces the XPCMessage struct.
 - Messages are now read from a UDPSocket by the Message class.
 - Printing messages to the log is now handled by the Message class.
 - In the future, may extend this class with command-specific subclasses that encapsulate additional message parsing functionality.
2015-04-13 09:42:29 -07:00