Logging interface and some default implementations for OOOCode
- Implementation for printing to the debug output
- Implementation for printing to a buffer (particularly for use in tests)
OOODebugLog class
#include "OOODebugLog.h"
OOODebugLog * pLog = OOOConstruct(OOODebugLog);
OOOILog * iLog = OOOCast(OOOILog, pLog);
/* printf style printing to the debug output */
OOOICall(iLog, print, "Hello, %s\n", "World");
OOODestroy(pLog);OOOTestLog class
#include "OOOTestLog.h"
OOOTestLog * pLog = OOOConstruct(OOOTestLog);
OOOILog * iLog = OOOCast(OOOILog, pLog);
/* printf style printing */
OOOICall(iLog, print, "Hello, %s\n", "World");
/* call the check method to verify the string that has been logged since the last time check was called */
bool bOk = OOOCall(pLog, check, "Hello, World\n");
OOODestroy(pLog);- Nothing yet
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality.
- OpenTV SDK C2.2 from http://community.opentv.com
This project references sub-modules so after cloning the repository...
git submodule init
git submodule update
Then the easiest way to work with the project in the OpenTV IDE...
- Create a new workspace in the root of the project
- In the IDE choose File/Import...
- In the resulting dialog choose General/Existing Projects Into Workspace and press Next
- Choose the Select Root Directory: Radio button and Browse... to the root of the project
- A number of projects may be listed under Projects
- Select the projects in the root, deselect those under the submodules folder and then click Finish
- You should then be able to build the OpenTV projects by choosing Project/Build All
After you have built the projects at least once run the test application in the Virtual Set top box by...
- Choosing the LogFlow project on the left
- Pressing the green Run button at the top
- In the resulting dialog choose Local OpenTV Application and press OK
(Nothing yet)
Copyright (c) 2012 Peter Halliday
Licensed under the MIT license.