JayBeams  0.1
Another project to have fun coding.
Classes | Namespaces
config_attribute.hpp File Reference

Breakout some of the helper classes from jb/config_object.hpp. More...

#include <jb/config_recurse.hpp>
#include <utility>

Go to the source code of this file.

Classes

class  jb::config_attribute< C, T >
 Helper class to easily define configuration attributes. More...
 

Namespaces

 jb
 The top-level namespace for the JayBeams library.
 

Detailed Description

Breakout some of the helper classes from jb/config_object.hpp.

The definition of jb::config_object requires a number of helper classes to define a configuration attribute (i.e. a member of a config object). The code in jb/config_object.hpp was getting too long to keep in a single file, but these classes and the code in jb/config_recurse.hpp are also deeply inter-related so they could not be simply refactored out. This is a signal of poor design, and I welcome suggestions on how to improve it. However, it works, and the user interface is really clean.

Definition in file config_attribute.hpp.