Last change
on this file since 4267 was
3799,
checked in by forkel, 6 years ago
|
editing in kpp4palm: add statements for avoiding unused variables, remove $Id
|
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 | // |
---|
15 | // Former revisions: |
---|
16 | // ----------------------- |
---|
17 | // Deleted $Id since document_changes does not work for C and C++ (15.03.2019, forkel) |
---|
18 | // |
---|
19 | // added void global_subtolower(string &line); (June 2018, forkel) |
---|
20 | // |
---|
21 | // initial version (Nov. 2016, ketelsen) |
---|
22 | |
---|
23 | #include <iostream> |
---|
24 | |
---|
25 | #include <string> |
---|
26 | #include <list> |
---|
27 | #include <vector> |
---|
28 | |
---|
29 | #include "utils.h" |
---|
30 | |
---|
31 | using namespace std; |
---|
32 | |
---|
33 | class program_line { |
---|
34 | |
---|
35 | string line; |
---|
36 | string_token tokens; |
---|
37 | |
---|
38 | public: |
---|
39 | |
---|
40 | string get_line() {return line;}; |
---|
41 | string get_token(int i) {return tokens.get_token_by_index(i);}; |
---|
42 | int get_token_size() {return tokens.size();}; |
---|
43 | |
---|
44 | void set_line(string s); |
---|
45 | void substitute(string old_s, string new_s); |
---|
46 | void global_substitute(string old_s, string new_s); |
---|
47 | int get_token_number_from_string (string s); |
---|
48 | int get_token_number_from_string_upper (string s); |
---|
49 | |
---|
50 | void update_token (int i, string s); |
---|
51 | void change_variable_to_vector (string var); |
---|
52 | void change_variable_to_vector_g (Vvar &var); |
---|
53 | void global_subtolower(string &line); |
---|
54 | }; |
---|
55 | |
---|
56 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.