DataSourceMerged.h
1 //##################################################################################################
2 //
3 // Ceetron Desktop Components
4 // Component: UnstructGrid
5 //
6 // --------------------------------------------------------------------------------------------
7 // Copyright (C) 2011, Ceetron AS
8 // This is UNPUBLISHED PROPRIETARY SOURCE CODE of Ceetron AS. The contents of this file may
9 // not be disclosed to third parties, copied or duplicated in any form, in whole or in part,
10 // without the prior written permission of Ceetron AS.
11 //##################################################################################################
12 
13 
14 #pragma once
15 
16 #include "CeeCore/PtrRef.h"
17 #include "CeeImportCae//Base.h"
18 #include "CeeUnstructGrid/DataSourceInterface.h"
19 
20 #include "CeeCore/Base.h"
21 
22 #include <map>
23 #include <vector>
24 
25 namespace cee {
26 namespace ug {
27 
28 //==================================================================================================
29 //
30 //
31 //
32 //==================================================================================================
33 class CEE_UG_EXPORT DataSourceMerged : public cee::ug::DataSourceInterface
34 {
35 public:
36  virtual ~DataSourceMerged();
37  DataSourceMerged(int dataSourceId);
38  DataSourceMerged(int dataSourceId, cee::ug::DataSourceInterface* mainDataSource);
39 
40  int nextDataSourceId() const;
41 
42  bool append(cee::ug::DataSourceInterface* dataSource);
43  virtual bool open(const Str& filename, cee::ug::Error* error = NULL);
44  virtual void close();
45 
46 private:
47  static bool areDataSourcesCompatible(const cee::ug::DataSourceInterface* dataSource1, const cee::ug::DataSourceInterface* dataSource2);
48 
49 private:
50  CEE_PRIVATE_IMPL(DataSourceMerged);
51  CEE_DISALLOW_COPY_AND_ASSIGN(DataSourceMerged);
52 
53 
54 };
55 
56 } // namespace ug
57 } // namespace cee
Namespace cee contains all functionality and structures under the Core component. ...
Definition: AppComponent.cpp:26
A general unicode based string class.
Definition: Str.h:28
Error object for simple error management
Definition: Error.h:27
A data source for an unstructured grid model that enabled merging of additional data sources...
Definition: DataSourceMerged.h:33
A parent class for interface data sources.
Definition: DataSourceInterface.h:34