cee::ug::DataSourceMerged

class DataSourceMerged : public DataSourceInterface

A data source for an unstructured grid model that enabled merging of additional data sources.

The main data source (specified upon construction) imposes the geometries on the ones added later on.

Public Functions

DataSourceMerged(int dataSourceId)

Constructs and initializes an empty merged data source. Specify a unique id.

DataSourceMerged(int dataSourceId, cee::ug::DataSourceInterface *mainDataSource)

Constructs and initializes a merged data source.

The given main data source imposes the geometries on the ones added later on.

Specify a unique id for the merged data source.

int nextDataSourceId() const

Gets next unique id.

bool append(cee::ug::DataSourceInterface *dataSource)

Appends this data source to the main data source (specified in constructor)

virtual bool open(const Str &filename, cee::ug::Error *error = NULL)

Does nothing. Not supported by merged data source.

virtual void close()

Does nothing. Not supported by merged data source.