OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
include.hpp
Go to the documentation of this file.
1//
2// Struct include
3//
4// Copyright (c) 2015, Christof Metzger-Kraus, Helmholtz-Zentrum Berlin
5// All rights reserved
6//
7// This file is part of OPAL.
8//
9// OPAL is free software: you can redistribute it and/or modify
10// it under the terms of the GNU General Public License as published by
11// the Free Software Foundation, either version 3 of the License, or
12// (at your option) any later version.
13//
14// You should have received a copy of the GNU General Public License
15// along with OPAL. If not, see <https://www.gnu.org/licenses/>.
16//
17#ifndef INCLUDE_HPP_
18#define INCLUDE_HPP_
19
20#include "ast.hpp"
21#include "error_handler.hpp"
22#include "skipper.hpp"
23
24#include <list>
25
26namespace SDDS {
27 struct include {
29
30 template <attributes A>
32 static bool apply() {
33 std::string attributeString;
34 switch (A) {
35 case FILENAME:
36 attributeString = "filename";
37 break;
38 case INCLUDE:
39 attributeString = "include";
40 break;
41 default:
42 return true;
43 }
44 std::cerr << attributeString << " not supported yet" << std::endl;
45 return false;
46 }
47 };
48 };
49
50 struct includeList : std::list<include> {};
51
52 inline std::ostream& operator<<(std::ostream& out, const include&) { return out; }
53} // namespace SDDS
54
55// Include parsing is now handled by SimpleParser
56#endif /* INCLUDE_HPP_ */
std::ostream & operator<<(std::ostream &out, const array &)
Definition array.hpp:87