www.cemf.ir
subSurface.cpp
Go to the documentation of this file.
1 #include "subSurface.hpp"
2 
4 {
5 
6  str.beginSquare()<<sub.name_<<token::SPACE<<
7  sub.start_<<token::SPACE<<sub.end_<<token::SPACE<<
8  sub.pointStart_<<token::SPACE<<sub.pointEnd_;
9  str.endSquare();
10  str.check(FUNCTION_NAME);
11  return str;
12 
13 }
14 
16 {
17  str.readBeginSquare("subSurface");
18  str >> sub.name_;
19  str >> sub.start_;
20  str >> sub.end_;
21  str >> sub.pointStart_;
22  str >> sub.pointEnd_;
23  str.readEndSquare("subSurface");
24  str.check(FUNCTION_NAME);
25  return str;
26 }
FUNCTION_NAME
#define FUNCTION_NAME
Definition: pFlowMacros.hpp:29
pFlow::IOstream::check
virtual bool check(const char *operation) const
Check IOstream status for given operation.
Definition: IOstream.cpp:42
pFlow::iIstream
Interface class for any input stream
Definition: iIstream.hpp:37
pFlow::subSurface::pointEnd_
uint32 pointEnd_
Definition: subSurface.hpp:36
pFlow::subSurface::end_
uint32 end_
Definition: subSurface.hpp:32
pFlow::iOstream::beginSquare
virtual iOstream & beginSquare()
Write begin list "[".
Definition: iOstream.cpp:160
pFlow::operator>>
INLINE_FUNCTION iIstream & operator>>(iIstream &str, AB3History &ab3)
Definition: AdamsBashforth3.hpp:41
pFlow::operator<<
INLINE_FUNCTION iOstream & operator<<(iOstream &str, const AB3History &ab3)
Definition: AdamsBashforth3.hpp:57
subSurface.hpp
pFlow::subSurface::name_
word name_
Definition: subSurface.hpp:38
pFlow::subSurface::start_
uint32 start_
Definition: subSurface.hpp:30
pFlow::iIstream::readBeginSquare
bool readBeginSquare(const char *funcName)
Begin read of data chunk, starts with '('.
Definition: iIstream.cpp:277
pFlow::subSurface::pointStart_
uint32 pointStart_
Definition: subSurface.hpp:34
pFlow::iOstream::endSquare
virtual iOstream & endSquare()
Write end list "]".
Definition: iOstream.cpp:179
pFlow::subSurface
Definition: subSurface.hpp:27
pFlow::iOstream
Interface class for any output stream.
Definition: iOstream.hpp:59
pFlow::iIstream::readEndSquare
bool readEndSquare(const char *funcName)
Begin read of data chunk, starts with '('.
Definition: iIstream.cpp:296