source: palm/trunk/UTIL/chemistry/gasphase_preproc/kpp4palm/src/program_line.h @ 3763

Last change on this file since 3763 was 3458, checked in by kanani, 6 years ago

Reintegrated fixes/changes from branch chemistry

File size: 1.5 KB
Line 
1#ifndef PLINE
2#define PLINE 1
3
4// ############################################################################
5//
6//     create_mz_kpp_module                       
7//
8//     create code from .90 sources created by KPP to be used in MESSy
9//
10//     COPYRIGHT Klaus Ketelsen and MPI-CH   April 2007
11//
12// ############################################################################
13//
14//Current revisions:
15//------------------
16//
17//
18// Former revisions:
19// -----------------------
20// $Id: program_line.h 3327 2018-10-09 19:55:00Z forkel $
21//
22// added    void   global_subtolower(string &line); (June 2018, forkel)
23//
24// initial version                                  (Nov. 2016, ketelsen)
25
26#include <iostream>
27
28#include <string>
29#include <list>
30#include <vector>
31
32#include "utils.h"
33
34using namespace std;
35
36class program_line {
37
38   string            line;
39   string_token      tokens;
40
41  public:
42
43   string get_line()          {return line;};
44   string get_token(int i)    {return tokens.get_token_by_index(i);};
45   int    get_token_size()    {return tokens.size();};
46
47   void   set_line(string s);
48   void   substitute(string old_s, string new_s);
49   void   global_substitute(string old_s, string new_s);
50   int    get_token_number_from_string (string s);
51   int    get_token_number_from_string_upper (string s);
52
53   void   update_token                 (int i, string s);
54   void   change_variable_to_vector    (string var);
55   void   change_variable_to_vector_g  (Vvar  &var);
56   void   global_subtolower(string &line);
57};
58
59#endif
Note: See TracBrowser for help on using the repository browser.