libprop: SourceGroup Class Reference

- Main Page
- Namespaces
- Classes
- Files

- Class List
- Class Hierarchy
- Class Members

# SourceGroup Class Reference

Interface to a collection of data sources. This can quickly fill Point objects with available data from a large set of source files. More...

`#include <source.h>`

Inheritance diagram for SourceGroup:

List of all members.

## Public Member Functions
| ~SourceGroup ()
void | add (Source *s)
void | resolve (Point *p)
bool | contains (Point *p)
## Private Attributes
vector< Source * > | list
| Internal list of all Source objects we know about.

## Detailed Description

Interface to a collection of data sources. This can quickly fill Point objects with available data from a large set of source files.

## Constructor & Destructor Documentation

SourceGroup::~SourceGroup | ( |  | ) |

## Member Function Documentation

void SourceGroup::add | ( | Source * | s | ) |

Add the given Source to this list of sources. Will be used in any resolve() calls in the future.

Parameters:

  | s | Source object to add to our list

void SourceGroup::resolve | ( | Point * | p | ) | `[virtual]`

Resolve a given Point by filling it with any new data this source can provide. Will ignore given point if this source can't provide data.

Parameters:

  | p | The point to try filling with data

Implements Source.

bool SourceGroup::contains | ( | Point * | p | ) | `[virtual]`

Check if any sources we know about can provide data about the given point.

Parameters:

  | p | Point to check against

Returns:
  True if any source provides data about given point, otherwise false.

Reimplemented from Source.

## Member Data Documentation

vector<Source*> SourceGroup::list`[private]`

Internal list of all Source objects we know about.

The documentation for this class was generated from the following file:

- source.h