atlas
Link.h
1 /*
2  * (C) Copyright 2020 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
8  * nor does it submit to any jurisdiction.
9  */
10 
11 #pragma once
12 
13 #include <string>
14 
15 namespace eckit {
16 class PathName;
17 }
18 
19 namespace atlas {
20 namespace io {
21 
22 struct Link {
23  std::string uri;
24 
25  const std::string& str() const { return uri; }
26  operator bool() const { return uri.size(); }
27  operator const std::string&() const { return str(); }
28 
29  // bool relative() const;
30 
31  // friend Link operator/( const eckit::PathName& dir, const Link& link );
32 };
33 
34 
35 } // namespace io
36 } // namespace atlas
Definition: Domain.h:19
Contains all atlas classes and methods.
Definition: atlas-grids.cc:33