![]() |
PhoenixLecture
2.0.0
Set of tools to make lectures
|
Go to the source code of this file.
Classes | |
struct | SplitArgument |
arguments of the phoenix_srcsplittexdir program More... | |
Functions | |
bool | createDirectoryWithFiles (const PPath &outputDir, const PPath &directoryName, const PVecPath &listInputFile, const SplitArgument &option) |
Process a list of files or directories and create the output directory. More... | |
OptionParser | createOptionParser () |
Create the OptionParser of this program. More... | |
int | main (int argc, char **argv) |
PVecPath | pathRemoveIfIgnored (const PVecPath &vecPath, const PVecPath &listIgnoreDir) |
Remove Path if they are ignored. More... | |
bool | processFileOrDir (const PPath &outputDir, const PPath &inputFile, const SplitArgument &option) |
Process a file or a directory. More... | |
bool | processListFile (const SplitArgument &option) |
Process a list of files or directories. More... | |
bool createDirectoryWithFiles | ( | const PPath & | outputDir, |
const PPath & | directoryName, | ||
const PVecPath & | listInputFile, | ||
const SplitArgument & | option | ||
) |
Process a list of files or directories and create the output directory.
outputDir | : name of the output directory |
directoryName | : name of the directory to be created |
listInputFile | : list of the input files or directories |
option | : arguments of the program |
Definition at line 63 of file main.cpp.
References PPath::createDirectory(), PPath::getFileName(), and processFileOrDir().
Referenced by processFileOrDir().
OptionParser createOptionParser | ( | ) |
Create the OptionParser of this program.
Definition at line 37 of file main.cpp.
References OptionParser::addOption(), OptionType::FILENAME, OptionType::NONE, OptionParser::setExampleLongOption(), and OptionParser::setExampleShortOption().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 163 of file main.cpp.
References createOptionParser(), OptionParser::getDefaultMode(), OptionMode::getValue(), OptionMode::isOptionExist(), SplitArgument::isPlatexMode, SplitArgument::keepComment, SplitArgument::keepTex, SplitArgument::listIgnoreDir, SplitArgument::listInputFile, SplitArgument::outputDir, OptionParser::parseArgument(), processListFile(), and SplitArgument::removefirstcomment.
Remove Path if they are ignored.
vecPath | : vector of Path |
listIgnoreDir | : vector of ignored directories |
Definition at line 82 of file main.cpp.
Referenced by processFileOrDir().
bool processFileOrDir | ( | const PPath & | outputDir, |
const PPath & | inputFile, | ||
const SplitArgument & | option | ||
) |
Process a file or a directory.
outputDir | : current output directory |
inputFile | : input file or directory |
option | : arguments of the program |
Definition at line 104 of file main.cpp.
References PPath::changeMode(), createDirectoryWithFiles(), PPath::getAllElementInDir(), PPath::getFileName(), getSplitOutputFileName(), SplitArgument::isPlatexMode, SplitArgument::keepComment, SplitArgument::keepTex, SplitArgument::listIgnoreDir, pathRemoveIfIgnored(), processFile(), and SplitArgument::removefirstcomment.
Referenced by createDirectoryWithFiles(), and processListFile().
bool processListFile | ( | const SplitArgument & | option | ) |
Process a list of files or directories.
option | : arguments of the program |
Definition at line 152 of file main.cpp.
References SplitArgument::listInputFile, SplitArgument::outputDir, and processFileOrDir().
Referenced by main().