GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
file_gen.cc File Reference
#include <string>
#include <cstdio>
#include <iostream>
#include <vector>
#include <sstream>
#include <fstream>
#include <algorithm>
Include dependency graph for file_gen.cc:

Functions

bool is_removed (std::string classname, std::string funcname)
std::string codegen (std::string classname, std::string funcname)
int find_ch (std::string s, char ch)
std::vector< std::pair< std::string, std::string > > parse_file (std::string contents)
void error (std::string reason)
std::string map_apiname (std::string apiname)
std::string output_contents (std::vector< std::pair< std::string, std::string > > vec)
int find_str (std::string contents, std::string label)
int find_chars (std::string contents, int pos, std::string chars)
std::pair< std::vector< std::string >, std::vector< std::string > > find_adds (std::string contents)
bool find (std::string s, std::string s2)
std::string network (std::string url)
std::string replace_string (std::string s, std::string rep, std::string subst)
std::string get_last_line (std::string lines)
std::string find_label (std::string line)
std::string remove_chars (std::string contents, char ch)
bool is_in_list (std::vector< std::pair< std::string, std::string > > vec, std::string cl, std::string fn)
std::string add_spaces (std::string s, int count, int count2)
void usage ()
std::string get_dep (std::string classname, std::string funcname)
std::vector< std::pair< std::string, std::string > > get_deps (std::string classname, std::string funcname)
int main (int argc, char *argv[])

Variables

std::string removed_names []
std::string apinames []

Function Documentation

◆ add_spaces()

std::string add_spaces ( std::string s,
int count,
int count2 )
Here is the caller graph for this function:

◆ codegen()

std::string codegen ( std::string classname,
std::string funcname )
Here is the caller graph for this function:

◆ error()

void error ( std::string reason)
Here is the caller graph for this function:

◆ find()

bool find ( std::string s,
std::string s2 )
Here is the caller graph for this function:

◆ find_adds()

std::pair< std::vector< std::string >, std::vector< std::string > > find_adds ( std::string contents)

◆ find_ch()

int find_ch ( std::string s,
char ch )
Here is the caller graph for this function:

◆ find_chars()

int find_chars ( std::string contents,
int pos,
std::string chars )
Here is the caller graph for this function:

◆ find_label()

std::string find_label ( std::string line)
Here is the caller graph for this function:

◆ find_str()

int find_str ( std::string contents,
std::string label )
Here is the caller graph for this function:

◆ get_dep()

std::string get_dep ( std::string classname,
std::string funcname )
Here is the caller graph for this function:

◆ get_deps()

std::vector< std::pair< std::string, std::string > > get_deps ( std::string classname,
std::string funcname )
Here is the caller graph for this function:

◆ get_last_line()

std::string get_last_line ( std::string lines)
Here is the caller graph for this function:

◆ is_in_list()

bool is_in_list ( std::vector< std::pair< std::string, std::string > > vec,
std::string cl,
std::string fn )
Here is the caller graph for this function:

◆ is_removed()

bool is_removed ( std::string classname,
std::string funcname )
Here is the caller graph for this function:

◆ main()

int main ( int argc,
char * argv[] )

◆ map_apiname()

std::string map_apiname ( std::string apiname)

◆ network()

std::string network ( std::string url)
Here is the caller graph for this function:

◆ output_contents()

std::string output_contents ( std::vector< std::pair< std::string, std::string > > vec)
Here is the caller graph for this function:

◆ parse_file()

std::vector< std::pair< std::string, std::string > > parse_file ( std::string contents)
Here is the caller graph for this function:

◆ remove_chars()

std::string remove_chars ( std::string contents,
char ch )
Here is the caller graph for this function:

◆ replace_string()

std::string replace_string ( std::string s,
std::string rep,
std::string subst )
Here is the caller graph for this function:

◆ usage()

void usage ( )
Here is the caller graph for this function:

Variable Documentation

◆ apinames

std::string apinames[]

◆ removed_names

std::string removed_names[]
Initial value:
= {
"polygon_api", "empty"
}