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

Last change on this file since 3398 was 3298, checked in by kanani, 6 years ago

Merge chemistry branch at r3297 to trunk

File size: 1.3 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// forkel June 2018: added    void   global_subtolower(string &line);
15
16#include <iostream>
17
18#include <string>
19#include <list>
20#include <vector>
21
22#include "utils.h"
23
24using namespace std;
25
26class program_line {
27
28   string            line;
29   string_token      tokens;
30
31  public:
32
33   string get_line()          {return line;};
34   string get_token(int i)    {return tokens.get_token_by_index(i);};
35   int    get_token_size()    {return tokens.size();};
36
37   void   set_line(string s);
38   void   substitute(string old_s, string new_s);
39   void   global_substitute(string old_s, string new_s);
40   int    get_token_number_from_string (string s);
41   int    get_token_number_from_string_upper (string s);
42
43   void   update_token                 (int i, string s);
44   void   change_variable_to_vector    (string var);
45   void   change_variable_to_vector_g  (Vvar  &var);
46   void   global_subtolower(string &line);
47};
48
49#endif
Note: See TracBrowser for help on using the repository browser.