btool
A parser/converter/transpiler for .bib files
main.cpp File Reference
#include <boost/program_options.hpp>
#include <GeneratorException.hpp>
#include <PlainTextGenerator.hpp>
#include <HtmlGenerator.hpp>
#include <XmlGenerator.hpp>
#include <Parser.hpp>
#include <optional>
#include <iostream>
#include <vector>
#include <string>
+ Include dependency graph for main.cpp:

Go to the source code of this file.

Classes

struct  Conflicts
 
struct  Dependencies
 
struct  Requirements
 

Functions

void parseCommandLine (int argc, char **argv, po::variables_map &vm, po::options_description &description)
 
void checkConstraints (const po::variables_map &vm)
 
int main (int argc, char **argv)
 

Function Documentation

◆ checkConstraints()

void checkConstraints ( const po::variables_map &  vm)

Defines all argument constraints and checks them

Parameters
vmthe program arguments
Exceptions
std::logic_errorwhen any constraint is violated

Definition at line 138 of file main.cpp.

Referenced by main().

+ Here is the caller graph for this function:

◆ main()

int main ( int  argc,
char **  argv 
)

Main Program - Resolves command-line-arguments and prints output

Parameters
argcnumber of command-line arguments
argvcommand-line arguments
Returns
program exit-code

Definition at line 158 of file main.cpp.

References checkConstraints(), Parser::generate(), parseCommandLine(), HtmlGenerator::write(), PlainTextGenerator::write(), and XmlGenerator::write().

+ Here is the call graph for this function:

◆ parseCommandLine()

void parseCommandLine ( int  argc,
char **  argv,
po::variables_map &  vm,
po::options_description &  description 
)

Defines CLI and translates program arguments

Parameters
argcthe number of program arguments
argvthe program arguments
vm[out]the variables map to store command-line-parameters into
description[out]the cli description to populate

Definition at line 103 of file main.cpp.

Referenced by main().

+ Here is the caller graph for this function: