libdcp
Public Types | Public Member Functions | Private Attributes | List of all members
dcp::NameFormat Class Reference

Public Types

typedef std::map< char, std::string > Map
 

Public Member Functions

 NameFormat (std::string specification)
 
std::string specification () const
 
void set_specification (std::string specification)
 
std::string get (Map, std::string suffix, std::string ignore="") const
 

Private Attributes

std::string _specification
 

Detailed Description

Definition at line 53 of file name_format.h.

Member Function Documentation

◆ get()

string NameFormat::get ( Map  values,
std::string  suffix,
std::string  ignore = "" 
) const
Parameters
valuesValues to replace our specifications with; e.g. if the specification contains c it will be be replaced with the value corresponding to the key 'c'.
suffixSuffix to add on after processing the specification.
ignoreAny specification characters in this string will not be replaced, but left as-is.

Definition at line 77 of file name_format.cc.


The documentation for this class was generated from the following files: