FV3 Bundle
ExampleHeader.h
Go to the documentation of this file.
1 /*
2  * (C) Copyright 2009-2016 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 #ifndef DOCUMENTS_EXAMPLEHEADER_H_
12 #define DOCUMENTS_EXAMPLEHEADER_H_
13 
14 // C++ header files
15  // --- Add #includes here (use forward declarations if possible) --- //
16 
17 #include <boost/noncopyable.hpp>
18 
19 // Forward declarations
20  // --- Add declarations (class SomeClass;) for non-oops classes here --- //
21 namespace oops {
22  // --- Add declarations (class SomeOopsClass;) for oops classes here --- //
23 }
24 
25 namespace oops {
26 
27  /// Doxygen brief comment. One line only. The comment must start with ///
28  /*!
29  * Replace this comment block with longer documentation that describes
30  * the function of the class. The comment will be processed by doxygen
31  * and included in the documentation. Member functions should be documented
32  * where they are declared (e.g. the makeTea function below).
33  */
34 
35  class Example : private boost::noncopyable {
36  public:
37 
38  // -- Constructors
39  Example();
40 
41  // -- Destructor
42  ~Example()
43 
44  // -- Methods
45 
46  /// makeTea takes an argument indicating the number of teabags to be used.
47  void makeTea(const int);
48 
49  private:
50  // -- Members
51 
52  // -- Overridden methods
53  };
54 
55 } // namespace oops
56 #endif // DOCUMENTS_EXAMPLEHEADER_H_
The namespace for the main oops code.
~Example() void makeTea(const int)
makeTea takes an argument indicating the number of teabags to be used.
Doxygen brief comment. One line only. The comment must start with ///.
Definition: ExampleHeader.h:35