Commit Graph

4 Commits

Author SHA1 Message Date
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
Chris Teubert
79d4897206 Added newline at EOF
So X-Code won’t complain anymore.
2015-05-04 10:59:16 -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
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