Ardour  9.0-pre0-582-g084a23a80d
enumwriter.h File Reference
#include <map>
#include <string>
#include <vector>
#include <exception>
#include <sstream>
#include "pbd/libpbd_visibility.h"
Include dependency graph for enumwriter.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  PBD::unknown_enumeration
 
class  PBD::EnumWriter
 
struct  PBD::EnumWriter::EnumRegistration
 

Namespaces

 PBD
 

Macros

#define enum_2_string(e)   (PBD::EnumWriter::instance().write (typeid(e).name(), e))
 
#define string_2_enum(str, e)   (PBD::EnumWriter::instance().read (typeid(e).name(), (str)))
 

Macro Definition Documentation

◆ enum_2_string

#define enum_2_string (   e)    (PBD::EnumWriter::instance().write (typeid(e).name(), e))

Definition at line 96 of file enumwriter.h.

◆ string_2_enum

#define string_2_enum (   str,
 
)    (PBD::EnumWriter::instance().read (typeid(e).name(), (str)))

Definition at line 97 of file enumwriter.h.