GNU Octave  3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions | Variables
mkoctfile.in.cc File Reference
#include <string>
#include <cstring>
#include <map>
#include <list>
#include <algorithm>
#include <iostream>
#include <fstream>
#include <vector>
#include <cstdlib>
Include dependency graph for mkoctfile.in.cc:

Go to the source code of this file.

Functions

static string basename (const string &s, bool strip_path=false)
bool ends_with (const string &s, const string &suffix)
static string get_line (FILE *fp)
static string get_variable (const char *name, const string &defval)
static void initialize (void)
bool is_true (const std::string &s)
int main (int argc, char **argv)
static string quote_path (const string &s)
static int run_command (const string &cmd)
bool starts_with (const string &s, const string &prefix)
static string substitute_prefix (const string &s, const string &prefix, const string &new_prefix)

Variables

static bool debug = false
static string help_msg = "\n"
static bool initialized = false
static string OCTAVE_VERSION = %OCTAVE_CONF_VERSION%
static string usage_msg = "usage: mkoctfile [options] file ..."
static map< string, string > vars
static string version_msg = "mkoctfile, version " + OCTAVE_VERSION

Function Documentation

static string basename ( const string &  s,
bool  strip_path = false 
)
static

Definition at line 366 of file mkoctfile.in.cc.

References max().

Referenced by main().

bool ends_with ( const string &  s,
const string &  suffix 
)
inline

Definition at line 395 of file mkoctfile.in.cc.

Referenced by main().

static string get_line ( FILE *  fp)
static

Definition at line 73 of file mkoctfile.in.cc.

Referenced by main().

static string get_variable ( const char name,
const string &  defval 
)
static

Definition at line 96 of file mkoctfile.in.cc.

Referenced by initialize().

static void initialize ( void  )
static
bool is_true ( const std::string &  s)

Definition at line 410 of file mkoctfile.in.cc.

Referenced by DEFUN(), Fmkstemp(), and main().

int main ( int  argc,
char **  argv 
)
static string quote_path ( const string &  s)
static

Definition at line 106 of file mkoctfile.in.cc.

Referenced by initialize(), and main().

static int run_command ( const string &  cmd)
static

Definition at line 402 of file mkoctfile.in.cc.

References debug.

Referenced by main().

bool starts_with ( const string &  s,
const string &  prefix 
)
inline

Definition at line 389 of file mkoctfile.in.cc.

Referenced by main().

static string substitute_prefix ( const string &  s,
const string &  prefix,
const string &  new_prefix 
)
static

Definition at line 53 of file mkoctfile.in.cc.

References replace().

Referenced by initialize().

Variable Documentation

bool debug = false
static

Definition at line 278 of file mkoctfile.in.cc.

Referenced by main(), and run_command().

string help_msg = "\n"
static

Definition at line 279 of file mkoctfile.in.cc.

Referenced by main().

bool initialized = false
static
string OCTAVE_VERSION = %OCTAVE_CONF_VERSION%
static

Definition at line 50 of file mkoctfile.in.cc.

string usage_msg = "usage: mkoctfile [options] file ..."
static

Definition at line 276 of file mkoctfile.in.cc.

Referenced by main().

map<string,string> vars
static
string version_msg = "mkoctfile, version " + OCTAVE_VERSION
static

Definition at line 277 of file mkoctfile.in.cc.

Referenced by main().