OpenAccess Contributed ReUse Library
OA Contribution - Software - ReUse Code
Summary  |  Forums  |  News

 
Browse Library | New Contribution

Contribution Detail

Patch to make oaOccTraverser 22.04p028 more useful
Author Forum Language License CoO
John McGehee Browse - Post C++ Apache License, Version 2.0 (shrinkwrap) None Provided
Description:
OaOccTraverser is a fine idea; it just needs a bit of rearrangement. As I developed an application on top of it at AMD, I implemented a new OaOccTraverser that met my needs. It really quite useful now. The application based on oaOccTraverser is very easy to maintain.

In OA enhancement 1114, I documented my changes so they can be integrated into the OpenAccess release.

If you want to use the new AMD oaOccTraverser now without waiting for integration into OpenAccess, use this patch to create your own oaOccTraverserNew to use in the interim. Make sure to read enhancement 1114 for more details.

Thank you AMD for directing me to release this patch.

John McGehee
On site at AMD
Voom, Inc.

Versions of this Contribution:

ID Download Version(s) Downloads Date Posted
43 oa22.04 (22.04p028) 23 2008-12-16 11:19
  README Notes:
This patch originated at AMD, and was appended to OA Enhancement #1114 as directed
by AMD.

While you users are waiting for the fixed oaOccTraverser, you can do like I do, and
use this patch to make your own oaOccTraverserNew to use while you are waiting for
the official oaOccTraverser in OA.

Here's how to apply the patch, for the OA Team, and for application developers:



If you are the OA Development team, and you are fixing OA itself:

Get the patch, oaOccTraverser.1114.patch.  This patches OA 22.04_p028.  The patch is
also appended to this comment.

cd oa/src/design

patch -Np1 < path/to/oaOccTraverser.1114.patch

Edit oaOccTraverser.cpp and oaOccTraverser.h to remove "New" from the class
names

Follow the comments in the source files and the instructions in this enhancement to
reimplement methods in the correct base classes using the private API

I was shocked to find that I do not have an update for the oaOccTraverser unit test.
 The unit test for oaOccTraverser is incorporated into my derived class' unit test. 
Bad form, I know.  If the OA Team tells me, "We'll integrate your new oaTraverser
if
you provide a unit test", I'll write it.



If you are an application programmer who wants to use oaOccTraverser right now
without waiting for the OA Team,

Get the patch, oaOccTraverser.1114.patch.  This patches OA 22.04_p028.  The patch is
also appended to this comment.

Copy oa/src/design/oaOccTraverser.{cpp,h} from OA version 22.04_p028 to your
application's source directory

cd your/application/src

patch -Np1 < path/to/oaOccTraverser.1114.patch

mv oaOccTraverser.h   oaTraverserNew.h
mv oaOccTraverser.cpp oaTraverserNew.cpp

Use class oaOccTraverserNew in your code instead of oaOccTraverser.


 
John McGehee
On site at AMD
Voom, Inc.

Versions of a Contribution are set by the owner as the most recent OpenAccess release the contribution was successfully built or tested with.
A contributor can:
  • Update their contribution with a new OA release version of the code.
  • OR Delete a previous version. (Basically replace with a more recent version).




 
Copyright © 2005-2010
Silicon Integration Initiative, Inc (Si2)
All rights reserved
Site Map
How to Get an Account
Contact Si2
Contact Site Admin
Legal Notice/Disclaimer