#include <OSWcontributionIterator.h>
Collaboration diagram for OSWcontributionIterator:

Public Member Functions | |
| OSWcontributionIterator (EBFevent *event, OSWcontribution *contribution) | |
| Constructor for iterating over an Online Software contribution. | |
| OSWcontributionIterator () | |
| Do nothing constructor. | |
| virtual int | handleError (OSWcontribution *contribution, unsigned code, unsigned p1=0, unsigned p2=0) const |
| Handle all errors possible in OSWcontributionIterator. | |
| unsigned | iterate () |
| Iterate over the contributions in an OSWcontribution. | |
| unsigned | iterate (EBFevent *event, OSWcontribution *contribution) |
| Iterate over the contributions in an OSWcontribution. | |
| virtual int | OSWtime (const struct timespec *ts, const OSWtimeBase *tb) const |
| Virtual method for calling the application back with time data. | |
| virtual int | OSW_time (EBFevent *event, OSWtimeContribution *contribution) const |
| Virtual method for calling the application back with the time contribution. | |
| virtual int | OSW_UDF (EBFevent *event, OSWcontribution *contribution) const |
| Undefined Online Software contribution handler. | |
| const EBFevent * | event () const |
| const OSWcontribution * | contribution () const |
| int | status () const |
Copyright: Copyright 2004 by The Board of Trustees of the Leland Stanford Junior University. All rights reserved.
| OSWcontributionIterator::OSWcontributionIterator | ( | EBFevent * | event, | |
| OSWcontribution * | contribution | |||
| ) | [inline] |
Constructor for iterating over an Online Software contribution.
This constructor caches the event and contribution provided by the caller.
| event | A pointer to the EBFevent containing the contribution | |
| contribution | A pointer to the contribution to iterate over |
| const OSWcontribution * OSWcontributionIterator::contribution | ( | ) | const [inline] |
Return a pointer to the OSWcontribution to be iterated over
| const EBFevent * OSWcontributionIterator::event | ( | ) | const [inline] |
Return a pointer to the EBFevent containing this contribution
| int OSWcontributionIterator::handleError | ( | OSWcontribution * | contribution, | |
| unsigned | code, | |||
| unsigned | p1 = 0, |
|||
| unsigned | p2 = 0 | |||
| ) | const [inline, virtual] |
Handle all errors possible in OSWcontributionIterator.
This method is used to handle errors occurring during the iteration over an OSWcontribution. By default it does nothing, however it is virtual and is able to be overridden by the user.
| contribution | The contribution in error | |
| code | The error code | |
| p1 | a parameter associated with the error code | |
| p2 | a parameter associated with the error code |
| unsigned OSWcontributionIterator::iterate | ( | EBFevent * | event, | |
| OSWcontribution * | contribution | |||
| ) |
Iterate over the contributions in an OSWcontribution.
| event | - The EBFevent containing the OSWcontribution | |
| contribution | - The OSWcontribution to be iterated over |
| unsigned OSWcontributionIterator::iterate | ( | ) | [inline] |
Iterate over the contributions in an OSWcontribution.
| int OSWcontributionIterator::OSW_time | ( | EBFevent * | event, | |
| OSWtimeContribution * | contribution | |||
| ) | const [inline, virtual] |
Virtual method for calling the application back with the time contribution.
The default implementation of this method calls the OSWtime pure virtual method. This is done to preserve the historical interface.
| event | - A pointer to the EBFevent containing the contribution | |
| contribution | - A pointer to an OSWtimeContribution |
| int OSWcontributionIterator::OSW_UDF | ( | EBFevent * | event, | |
| OSWcontribution * | contribution | |||
| ) | const [inline, virtual] |
Undefined Online Software contribution handler.
| event | - A pointer to the event containing the contribution | |
| contribution | - A pointer to the contribution being iterated over |
| int OSWcontributionIterator::OSWtime | ( | const struct timespec * | ts, | |
| const OSWtimeBase * | tb | |||
| ) | const [inline, virtual] |
Virtual method for calling the application back with time data.
| ts | - A pointer to a timespec structure containing the event timestamp | |
| tb | - A pointer to an OSWtimeBase containing the event timebase value |
| int OSWcontributionIterator::status | ( | ) | const [inline] |
Return the iteration status code
1.4.7