IODA Bundle
Block.cc
Go to the documentation of this file.
1 /*
2  * (C) Copyright 1996-2012 ECMWF.
3  *
4  * This software is licensed under the terms of the Apache Licence Version 2.0
5  * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
6  * In applying this licence, ECMWF does not waive the privileges and immunities
7  * granted to it by virtue of its status as an intergovernmental organisation nor
8  * does it submit to any jurisdiction.
9  */
10 
11 #include <ostream>
12 
13 #include "eckit/eckit.h"
14 #include "eckit/io/Offset.h"
15 #include "eckit/io/Length.h"
16 
17 #include "odc/core/MetaData.h"
18 #include "odc/Reader.h"
19 #include "odc/Select.h"
20 #include "odc/Block.h"
21 
22 using namespace eckit;
23 using namespace std;
24 
25 namespace odc {
26 
27 std::string Block::str() const
28 {
29  stringstream ss;
30  ss << *this;
31  return ss.str();
32 }
33 
34 ostream& operator<< (ostream& o, const Block& b)
35 {
36  o << "block,file=\"" << b.fileName << "\","
37  << "start=" << b.start << ","
38  << "end=" << b.end << ","
39  << "firstRow=" << b.firstRow << ","
40  << "lastRow=" << b.lastRow
41  ;
42  return o;
43 }
44 
45 } // namespace odc
46 
eckit::Offset start
Definition: Block.h:73
eckit::PathName fileName
Definition: Block.h:72
ullong firstRow
Definition: Block.h:75
eckit::Offset end
Definition: Block.h:74
ullong lastRow
Definition: Block.h:76
Definition: ColumnInfo.h:23
ostream & operator<<(ostream &o, const Block &b)
Definition: Block.cc:34
Definition: encode.cc:30