Last change
on this file since 1954 was
1918,
checked in by ymipsl, 4 years ago
|
Big update on on going work related to data distribution and transfer between clients and servers.
- move all related file into distribution directorie
- implement the concept of data "View"
- implement the concept of "connector" which make the data transfer between 2 differents "Views"
YM
|
-
Property svn:eol-style set to
native
-
Property svn:executable set to
*
|
File size:
816 bytes
|
Rev | Line | |
---|
[1918] | 1 | #include "grid_elements.hpp" |
---|
| 2 | #include "grid_local_view.hpp" |
---|
| 3 | #include "grid_local_connector.hpp" |
---|
| 4 | |
---|
| 5 | namespace xios |
---|
| 6 | { |
---|
| 7 | |
---|
| 8 | CGridLocalView* CGridLocalElements::getView(CElementView::type type) |
---|
| 9 | { |
---|
| 10 | if (views_[type]==nullptr) views_[type] = new CGridLocalView(this, type) ; |
---|
| 11 | return views_[type] ; |
---|
| 12 | } |
---|
| 13 | |
---|
| 14 | CGridLocalConnector* CGridLocalElements::getConnector(CElementView::type srcType, CElementView::type dstType) |
---|
| 15 | { |
---|
| 16 | auto newPair = pair<CElementView::type,CElementView::type>(srcType,dstType); |
---|
| 17 | auto it = connectors_.find(newPair) ; |
---|
| 18 | if (it==connectors_.end()) |
---|
| 19 | { |
---|
| 20 | auto insertPair=pair<pair<CElementView::type,CElementView::type>, CGridLocalConnector*>(newPair,new CGridLocalConnector(this, srcType, dstType)) ; |
---|
| 21 | it=connectors_.insert(insertPair).first ; |
---|
| 22 | } |
---|
| 23 | return it->second ; |
---|
| 24 | } |
---|
| 25 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.