Commit ada28548 authored by Franjo's avatar Franjo
Browse files

Modified streaming operators meshOctreeCubeCoordinates

parent 9943ea6e
...@@ -523,16 +523,23 @@ inline Istream& operator>> ...@@ -523,16 +523,23 @@ inline Istream& operator>>
meshOctreeCubeCoordinates& cc meshOctreeCubeCoordinates& cc
) )
{ {
// Read beginning of meshOctreeCubeCoordinates //- Read beginning of meshOctreeCubeCoordinates
is.readBegin("meshOctreeCubeCoordinates"); is.readBegin("meshOctreeCubeCoordinates");
//- read the level in the octree structure
label l; label l;
is >> l; is >> l;
cc.level_ = l; cc.level_ = l;
//- read x, y and z coordinates
is.readBegin("meshOctreeCubeCoordinates");
is >> cc.posX_; is >> cc.posX_;
is >> cc.posY_; is >> cc.posY_;
is >> cc.posZ_; is >> cc.posZ_;
is.readEnd("meshOctreeCubeCoordinates");
// Read end of meshOctreeCubeCoordinates // Read end of meshOctreeCubeCoordinates
is.readEnd("meshOctreeCubeCoordinates"); is.readEnd("meshOctreeCubeCoordinates");
...@@ -551,10 +558,15 @@ inline Ostream& operator<< ...@@ -551,10 +558,15 @@ inline Ostream& operator<<
os << token::BEGIN_LIST; os << token::BEGIN_LIST;
os << label(cc.level_) << token::SPACE; os << label(cc.level_) << token::SPACE;
os << token::BEGIN_LIST;
os << cc.posX_ << token::SPACE; os << cc.posX_ << token::SPACE;
os << cc.posY_ << token::SPACE; os << cc.posY_ << token::SPACE;
os << cc.posZ_ << token::END_LIST; os << cc.posZ_ << token::END_LIST;
os << token::END_LIST;
// Check state of Ostream // Check state of Ostream
os.check("operator<<(Ostream&, const meshOctreeCubeCoordinates"); os.check("operator<<(Ostream&, const meshOctreeCubeCoordinates");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment