|
FAUST compiler
0.9.9.6b8
|
#include <iostream>#include <fstream>#include <set>#include <string>#include <time.h>#include <cstdlib>#include <errno.h>#include "doc_lang.hh"#include "doc_notice.hh"#include "doc_autodoc.hh"#include "doc_metadatas.hh"#include "lateq.hh"#include "enrobage.hh"#include "compatibility.hh"
Go to the source code of this file.
Functions | |
| static void | importDocStrings (const string &filename) |
| Feed the content of doc texts maps from a file. More... | |
| static void | getKey (string &s, string &key, size_t &pt1) |
| static void | getText (string &s, size_t &pt1, string &text) |
| static void | storePair (const string &key, const string &text) |
| static void | printStringMapContent (map< string, string > &m, const string &name) |
| Simple trace function. More... | |
| static istream * | openArchFile (const string &filename) |
| Open architecture file. More... | |
| static void | getCurrentDir () |
| Get current directory and store it in gCurrentDir. More... | |
| static int | cholddir () |
| Switch back to the previously stored current directory. More... | |
| void | loadTranslationFile (const string &lang) |
Variables | |
| map< string, string > | gDocNoticeStringMap |
| set< string > | gDocNoticeKeySet |
| map< string, string > | gDocAutodocStringMap |
| set< string > | gDocAutodocKeySet |
| map< string, string > | gDocMathStringMap |
| set< string > | gDocMathKeySet |
| map< string, string > | gDocMetadatasStringMap |
| set< string > | gDocMetadatasKeySet |
| static const string | gDocTextsDefaultFile = "mathdoctexts-default.txt" |
| static string | gCurrentDir |
| Room to save current directory name. More... | |
|
static |
Switch back to the previously stored current directory.
Definition at line 242 of file doc_lang.cpp.
References gCurrentDir.
Referenced by drawSchema(), openArchFile(), and printDoc().

|
static |
Get current directory and store it in gCurrentDir.
Definition at line 256 of file doc_lang.cpp.
References FAUST_PATH_MAX, and gCurrentDir.
Referenced by openArchFile().

|
static |
Definition at line 145 of file doc_lang.cpp.
Referenced by importDocStrings().

|
static |
Definition at line 164 of file doc_lang.cpp.
Referenced by importDocStrings().

|
static |
Feed the content of doc texts maps from a file.
This mecchanism allows to load different files for translation.
"mathdoctexts" files must have been formatted as follows :
Definition at line 113 of file doc_lang.cpp.
References gDocAutodocStringMap, gDocMathStringMap, gDocMetadatasStringMap, gDocNoticeStringMap, getKey(), getText(), openArchFile(), printStringMapContent(), and storePair().
Referenced by loadTranslationFile().


| void loadTranslationFile | ( | const string & | lang | ) |
First ensure that the default file is loaded a least.
Then try and load the target file.
Definition at line 76 of file doc_lang.cpp.
References gDocTextsDefaultFile, importDocStrings(), initDocAutodoc(), initDocMath(), initDocMetadatas(), and initDocNotice().
Referenced by printDoc().


|
static |
Open architecture file.
Definition at line 224 of file doc_lang.cpp.
References cholddir(), getCurrentDir(), and open_arch_stream().
Referenced by importDocStrings().


|
static |
Simple trace function.
Definition at line 204 of file doc_lang.cpp.
Referenced by importDocStrings().

|
static |
Definition at line 176 of file doc_lang.cpp.
References gDocAutodocKeySet, gDocAutodocStringMap, gDocMathKeySet, gDocMathStringMap, gDocMetadatasKeySet, gDocMetadatasStringMap, gDocNoticeKeySet, and gDocNoticeStringMap.
Referenced by importDocStrings().

|
static |
Room to save current directory name.
Definition at line 66 of file doc_lang.cpp.
Referenced by cholddir(), and getCurrentDir().
| set<string> gDocAutodocKeySet |
Definition at line 41 of file doc_autodoc.cpp.
Referenced by initDocAutodocKeySet(), and storePair().
| map<string, string> gDocAutodocStringMap |
Definition at line 40 of file doc_autodoc.cpp.
Referenced by importDocStrings(), and storePair().
| set<string> gDocMathKeySet |
Definition at line 52 of file lateq.cpp.
Referenced by initDocMathKeySet(), and storePair().
| map<string, string> gDocMathStringMap |
Definition at line 51 of file lateq.cpp.
Referenced by importDocStrings(), Lateq::makeItemTitle(), Lateq::makeSigDomain(), Lateq::makeSignamesList(), Lateq::printHierarchy(), Lateq::println(), and storePair().
| set<string> gDocMetadatasKeySet |
Definition at line 36 of file doc_metadatas.cpp.
Referenced by initDocMetadatasKeySet(), and storePair().
| map<string, string> gDocMetadatasStringMap |
Definition at line 35 of file doc_metadatas.cpp.
Referenced by importDocStrings(), and storePair().
| set<string> gDocNoticeKeySet |
Definition at line 39 of file doc_notice.cpp.
Referenced by initDocNoticeFlagMap(), initDocNoticeKeySet(), and storePair().
| map<string, string> gDocNoticeStringMap |
Definition at line 38 of file doc_notice.cpp.
Referenced by importDocStrings(), printDocNotice(), and storePair().
|
static |
Definition at line 53 of file doc_lang.cpp.
Referenced by loadTranslationFile().
1.8.7