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
26
namespace
SDDS
{
27
struct
include
{
28
enum
attributes
{
FILENAME
,
INCLUDE
};
29
30
template
<attributes A>
31
struct
complainUnsupported
{
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_ */
ast.hpp
error_handler.hpp
SDDS
Definition
SDDSParser.h:40
SDDS::operator<<
std::ostream & operator<<(std::ostream &out, const array &)
Definition
array.hpp:87
skipper.hpp
SDDS::includeList
Definition
include.hpp:50
SDDS::include::complainUnsupported
Definition
include.hpp:31
SDDS::include::complainUnsupported::apply
static bool apply()
Definition
include.hpp:32
SDDS::include
Definition
include.hpp:27
SDDS::include::attributes
attributes
Definition
include.hpp:28
SDDS::include::FILENAME
@ FILENAME
Definition
include.hpp:28
SDDS::include::INCLUDE
@ INCLUDE
Definition
include.hpp:28
src
Utilities
SDDSParser
include.hpp
Generated on Mon Jun 1 2026 10:40:53 for OPALX (Object Oriented Parallel Accelerator Library for Exascal) by
1.9.8