NoTeX
1.0.0
A modern noteworthy LaTeX template
Toggle main menu visibility
Loading...
Searching...
No Matches
notex
src
main.cpp
1
10
11
#include "
orchestrator.hpp
"
12
13
#if defined(LOGGING)
14
#include "
notex/logging.hpp
"
15
#endif
16
17
int
main(
int
argc,
char
** argv) {
18
#if defined(LOGGING)
19
// A debug build wants full internal detail; a release build with
20
// logging explicitly enabled only wants user-facing operations and
21
// above, to keep logs/notex.log from filling up with anchor-lookup
22
// and filesystem-scan noise.
23
#if defined(DEBUG)
24
init_logging
(
"notex"
, plog::debug);
25
#else
26
init_logging
(
"notex"
, plog::info);
27
#endif
28
#endif
29
30
notex::Orchestrator
orchestrator;
31
return
static_cast<
int
>
(orchestrator.
run
(argc, argv));
32
}
notex::Orchestrator
Owns the command-line parser and coordinates the domain objects that carry out each command.
Definition
orchestrator.hpp:34
notex::Orchestrator::run
ExitCode run(int argc, char **argv)
Parses the command line and dispatches to the requested command, catching every exception at this sin...
Definition
orchestrator.cpp:676
logging.hpp
Logging utility with plog initialization.
init_logging
void init_logging(const std::string &app_name, plog::Severity severity=plog::debug)
Initialize logging to file in logs/ directory.
Definition
logging.hpp:118
orchestrator.hpp
Declares Orchestrator, the application layer that turns command-line input into calls on the notex_co...
Generated by
1.17.0