DataSourceMemory.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 #pragma once
14 
15 #include "CeeUnstructGrid/Base.h"
16 #include "CeeUnstructGrid/DataSource.h"
17 
18 namespace cee {
19 namespace ug {
20 
21 
22 
23 //==================================================================================================
24 //
25 //
26 //
27 //==================================================================================================
28 class CEE_UG_EXPORT DataSourceMemory : public DataSource
29 {
30 public:
31  DataSourceMemory(int dataSourceId, size_t geometryCountPerState);
32  virtual ~DataSourceMemory();
33 
34  size_t geometryCountPerState() const;
35 
36  bool updateDerivedResult(ResultType resultType, int id);
37  bool updateAllDerivedResults();
38 
39  void addState(DataState* state);
40  void removeAllStates();
41  void updateDirectoryFromStates();
42 
43 private:
44  virtual bool loadCustomResultBaseDependencies(int stateId, const DataStateSpec& stateSpec);
45  CEE_DISALLOW_COPY_AND_ASSIGN(DataSourceMemory);
46 };
47 
48 } // namespace ug
49 } // namespace cee
The data source of the model. For instance a file interface or custom built by the user...
Definition: DataSource.h:35
Namespace cee contains all functionality and structures under the Core component. ...
Definition: AppComponent.cpp:26
Specification of data to load for a state.
Definition: DataStateSpec.h:31
A state contains all data available for one time step, load case or frequency.
Definition: DataState.h:28
ResultType
Different types of results.
Definition: Base.h:90
A custom built data source for an unstructured grid model.
Definition: DataSourceMemory.h:28