Skip to content

pghalliday/OOOCode-Log

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OOOCode-Log

Logging interface and some default implementations for OOOCode

Features

  • Implementation for printing to the debug output
  • Implementation for printing to a buffer (particularly for use in tests)

API

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);

Roadmap

  • Nothing yet

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality.

Prerequisites

Initialising

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...

  1. Create a new workspace in the root of the project
  2. In the IDE choose File/Import...
  3. In the resulting dialog choose General/Existing Projects Into Workspace and press Next
  4. Choose the Select Root Directory: Radio button and Browse... to the root of the project
  5. A number of projects may be listed under Projects
  6. Select the projects in the root, deselect those under the submodules folder and then click Finish
  7. 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...

  1. Choosing the LogFlow project on the left
  2. Pressing the green Run button at the top
  3. In the resulting dialog choose Local OpenTV Application and press OK

Release History

(Nothing yet)

License

Copyright (c) 2012 Peter Halliday
Licensed under the MIT license.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors