Last change
on this file since 2328 was
775,
checked in by mhnguyen, 9 years ago
|
Implementing the reading of attributes of an axis from a file
+) 3d grid can be read directly from a file
+) Clean some redundant codes
+) Add new attribute declaration that allows to output only desired attributes
Test
+) On Curie
+) test_remap passes and result is correct
|
File size:
917 bytes
|
Rev | Line | |
---|
[602] | 1 | #include "data_input.hpp" |
---|
| 2 | |
---|
| 3 | #include "attribute_template.hpp" |
---|
| 4 | #include "group_template.hpp" |
---|
| 5 | #include "context.hpp" |
---|
| 6 | |
---|
| 7 | namespace xios |
---|
| 8 | { |
---|
| 9 | CDataInput::~CDataInput(void) |
---|
| 10 | { /* Nothing to do */ } |
---|
| 11 | |
---|
| 12 | //---------------------------------------------------------------- |
---|
| 13 | |
---|
| 14 | StdSize CDataInput::getFieldNbRecords(CField* field) |
---|
| 15 | { |
---|
| 16 | return this->getFieldNbRecords_(field); |
---|
| 17 | } |
---|
| 18 | |
---|
| 19 | //---------------------------------------------------------------- |
---|
| 20 | |
---|
| 21 | void CDataInput::readFieldData(CField* field) |
---|
| 22 | { |
---|
| 23 | this->readFieldData_(field); |
---|
| 24 | } |
---|
| 25 | |
---|
| 26 | //---------------------------------------------------------------- |
---|
| 27 | |
---|
| 28 | void CDataInput::closeFile(void) |
---|
| 29 | { |
---|
| 30 | this->closeFile_(); |
---|
| 31 | } |
---|
[775] | 32 | |
---|
| 33 | void CDataInput::readFieldAttributesMetaData(CField* field) |
---|
| 34 | { |
---|
| 35 | this->readFieldAttributes_(field, false); |
---|
| 36 | } |
---|
| 37 | |
---|
| 38 | void CDataInput::readFieldAttributesValues(CField* field) |
---|
| 39 | { |
---|
| 40 | this->readFieldAttributes_(field, true); |
---|
| 41 | } |
---|
[602] | 42 | } // namespace xios |
---|
Note: See
TracBrowser
for help on using the repository browser.