STIR  6.2.0
line.h
Go to the documentation of this file.
1 //
2 //
15 /*
16  Copyright (C) 2000 PARAPET partners
17  Copyright (C) 2000- 2009, IRSL
18  This file is part of STIR.
19 
20  SPDX-License-Identifier: Apache-2.0 AND License-ref-PARAPET-license
21 
22  See STIR/LICENSE.txt for details
23 */
24 #ifndef __stir_LINE_H__
25 #define __stir_LINE_H__
26 
27 #include "stir/common.h"
28 
29 #include <string>
30 #include <vector>
31 
32 START_NAMESPACE_STIR
33 
38 class Line : public std::string
39 {
40 
41 public:
42  Line()
43  : std::string()
44  {}
45 
46  Line& operator=(const char* ch);
47 
48  std::string get_keyword();
49  int get_index();
50  int get_param(std::vector<int>& v);
51  // KT 29/10/98 new
52  int get_param(std::vector<double>& v);
53  int get_param(std::vector<std::string>& v);
54  int get_param(std::string& s);
55  int get_param(int& i);
56  // KT 01/08/98 new
57  int get_param(unsigned long& i);
58  // KT 01/08/98 new
59  int get_param(double& i);
60 };
61 
62 END_NAMESPACE_STIR
63 
64 #endif
A class used by the Interfile parser.
Definition: line.h:38
basic configuration include file