a Code for the Combination of Indirect and Direct Constraints on High Energy Physics Models Logo
LinesAsStringsBlock.hpp
Go to the documentation of this file.
1/*
2 * LinesAsStringsBlock.hpp
3 *
4 * Created on: Mar 12, 2012
5 * Author: Ben O'Leary (benjamin.oleary@gmail.com)
6 * Copyright 2012 Ben O'Leary
7 *
8 * This file is part of LesHouchesParserClasses, released under the
9 * GNU General Public License. Please see the accompanying
10 * README.LHPC_CPP.txt file for a full list of files, brief documentation
11 * on how to use these classes, and further details on the license.
12 */
13
14#ifndef LINESASSTRINGSBLOCK_HPP_
15#define LINESASSTRINGSBLOCK_HPP_
16
17#include <string>
18#include "../SlhaBlock.hpp"
20
21namespace LHPC
22{
23 namespace SLHA
24 {
25 /* this class interprets all the blocks with the same name, though
26 * differing scale values, which are interpreted just as a set of lines as
27 * std::strings.
28 */
29 class LinesAsStringsBlock : public SlhaBlock< std::string,
30 InterpreterClass::LinesAsStrings >
31 {
32 public:
33 LinesAsStringsBlock( std::string const& blockName,
34 bool const isVerbose = false );
35 virtual
37
38 std::string
39 operator()( int const whichLine ) const;
40 // this returns operator() of the lowest-scale interpreter.
41 };
42
43
44
45
46
47 inline std::string
48 LinesAsStringsBlock::operator()( int const whichLine ) const
49 // this returns operator() of the lowest-scale interpreter.
50 {
51 return this->dataBlocks[ this->lowestScaleIndex ]( whichLine );
52 }
53
54 } // end of SLHA namespace
55
56} // end of LHPC namespace
57
58
59#endif /* LINESASSTRINGSBLOCK_HPP_ */
LinesAsStringsBlock(std::string const &blockName, bool const isVerbose=false)
std::string operator()(int const whichLine) const