advgetopt 2.0.49
Parse complex command line arguments and configuration files in C++.
Classes | Namespaces | Functions | Variables
atomic_names.cpp File Reference

Convert an atomic name file to C++. More...

#include <advgetopt/advgetopt.h>
#include <advgetopt/conf_file.h>
#include <advgetopt/exception.h>
#include <cppthread/thread.h>
#include <cppthread/version.h>
#include <libexcept/exception.h>
#include <libexcept/file_inheritance.h>
#include <libexcept/report_signal.h>
#include <snapdev/file_contents.h>
#include <snapdev/pathinfo.h>
#include <boost/preprocessor/stringize.hpp>
#include <iostream>
#include <sstream>
#include <snapdev/poison.h>
Include dependency graph for atomic_names.cpp:

Go to the source code of this file.

Classes

class  anonymous_namespace{atomic_names.cpp}::atomic_names
 

Namespaces

namespace  anonymous_namespace{atomic_names.cpp}
 

Functions

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

Variables

constexpr char const *const anonymous_namespace{atomic_names.cpp}::g_configuration_files []
 
advgetopt::group_description const anonymous_namespace{atomic_names.cpp}::g_group_descriptions []
 
const advgetopt::option anonymous_namespace{atomic_names.cpp}::g_options []
 
advgetopt::options_environment const anonymous_namespace{atomic_names.cpp}::g_options_environment
 

Detailed Description

This tool helps in converting a file of atomic names to a C++ implementation and header.

The format is:

introducer=<name>
project=<name>
sub_project=<name> # optional (used by plugins)
[names]
<name1>="..."
<name2>=deprecated:"..."
...

Values that start with "deprecated:" are marked as deprecated in the header file. Trying to use them will generate an error as you are expected to stop using them (i.e. the original owner of that string is not using it anymore). It is useful to keep deprecated names around until all your systems get updated with and none of the other services, plugins, tools use them.

Definition in file atomic_names.cpp.

Function Documentation

◆ main()

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

Definition at line 636 of file atomic_names.cpp.

References advgetopt::getopt_exit::code().

This document is part of the Snap! Websites Project.

Copyright by Made to Order Software Corp.