IODA Bundle
LibOdc.h
Go to the documentation of this file.
1 /*
2  * (C) Copyright 1996-2017 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 /// @author Simon Smart
12 /// @date June 2017
13 
14 #ifndef odb_api_LibOdc_H
15 #define odb_api_LibOdc_H
16 
17 #include "eckit/system/Library.h"
18 
19 namespace odc {
20 
21 //----------------------------------------------------------------------------------------------------------------------
22 
23 class LibOdc : public eckit::system::Library {
24 public:
25 
26  LibOdc();
27 
28  static const LibOdc& instance();
29 
30  virtual std::string version() const;
31 
32  virtual std::string gitsha1(unsigned int count) const;
33 
34 protected:
35 
36  const void* addr() const;
37 
38 };
39 
40 //----------------------------------------------------------------------------------------------------------------------
41 
42 } // namespace eckit
43 
44 #endif // odb_api_LibOdc_H
static void count(void *counter, const double *data, size_t n)
Definition: UnitTests.cc:531
static const LibOdc & instance()
Definition: LibOdc.cc:27
virtual std::string gitsha1(unsigned int count) const
Definition: LibOdc.cc:36
virtual std::string version() const
Definition: LibOdc.cc:34
const void * addr() const
Definition: LibOdc.cc:32
Definition: ColumnInfo.h:23