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

Last change on this file since 3107 was 2696, checked in by kanani, 7 years ago

Merge of branch palm4u into trunk

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