File: info.h

package info (click to toggle)
fityk 1.3.1-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,784 kB
  • sloc: cpp: 34,396; ansic: 4,673; python: 971; makefile: 366; sh: 117; java: 31; ruby: 27; perl: 25; xml: 16
file content (35 lines) | stat: -rw-r--r-- 1,155 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// This file is part of fityk program. Copyright 2009 Marcin Wojdyr.
// Licence: GNU General Public License ver. 2+

#ifndef FITYK_INFO_H_
#define FITYK_INFO_H_

#include <string>
#include <vector>
#include "lexer.h" // Token
#include "cparser.h" // CommandType

namespace fityk {

FITYK_API std::string build_info();

FITYK_API const char* embedded_lua_version();

/// appends output of the "info" command to the result
int eval_info_args(const Full* F, int ds, const std::vector<Token>& args,
                   int len, std::string& result);

/// handles commands info and print
void command_redirectable(Full const* F, int ds,
                          CommandType cmd, const std::vector<Token>& args);

void command_debug(const Full* F, int ds, const Token& key, const Token&rest);

FITYK_API void parse_and_eval_info(Full *F, const std::string& s, int dataset,
                                   std::string& result);
FITYK_API std::string& gnuplotize_formula(std::string& formula);
FITYK_API void models_as_script(const Full* F, std::string& r,
                                bool commented_defines);

} // namespace fityk
#endif // FITYK_INFO_H_