ardour
Public Types | Public Member Functions | Public Attributes | Private Types | Private Member Functions | Private Attributes | Friends | List of all members
ARDOUR::ExportFilename Class Reference

#include <export_filename.h>

Public Types

enum  DateFormat {
  D_None, D_ISO, D_ISOShortY, D_BE,
  D_BEShortY
}
 
enum  TimeFormat { T_None, T_NoDelim, T_Delim }
 

Public Member Functions

XMLNodeget_state ()
 
int set_state (const XMLNode &)
 
std::string get_path (ExportFormatSpecPtr format) const
 
std::string get_folder () const
 
TimeFormat get_time_format () const
 
DateFormat get_date_format () const
 
std::string get_time_format_str (TimeFormat format) const
 
std::string get_date_format_str (DateFormat format) const
 
std::string get_label () const
 
uint32_t get_revision () const
 
void set_time_format (TimeFormat format)
 
void set_date_format (DateFormat format)
 
void set_label (std::string value)
 
void set_revision (uint32_t value)
 
void set_channel (uint32_t value)
 
bool set_folder (std::string path)
 
void set_timespan (ExportTimespanPtr ts)
 
void set_channel_config (ExportChannelConfigPtr cc)
 

Public Attributes

bool include_label
 
bool include_session
 
bool include_revision
 
bool include_channel_config
 
bool include_format_name
 
bool include_channel
 
bool include_timespan
 
bool include_time
 
bool include_date
 

Private Types

typedef std::pair< bool,
std::string > 
FieldPair
 

Private Member Functions

 ExportFilename (Session &session)
 
std::string get_formatted_time (std::string const &format) const
 
void add_field (XMLNode *node, std::string const &name, bool enabled, std::string const &value="")
 
FieldPair get_field (XMLNode const &node, std::string const &name)
 
FieldPair analyse_folder ()
 

Private Attributes

Sessionsession
 
std::string label
 
uint32_t revision
 
uint32_t channel
 
std::string folder
 
DateFormat date_format
 
TimeFormat time_format
 
struct tm * time_struct
 
ExportTimespanPtr timespan
 
ExportChannelConfigPtr channel_config
 

Friends

class ExportElementFactory
 

Detailed Description

Definition at line 37 of file export_filename.h.

Member Typedef Documentation

typedef std::pair<bool, std::string> ARDOUR::ExportFilename::FieldPair
private

Definition at line 123 of file export_filename.h.

Member Enumeration Documentation

Enumerator
D_None 
D_ISO 
D_ISOShortY 
D_BE 
D_BEShortY 

Definition at line 40 of file export_filename.h.

Enumerator
T_None 
T_NoDelim 
T_Delim 

Definition at line 48 of file export_filename.h.

Constructor & Destructor Documentation

ARDOUR::ExportFilename::ExportFilename ( Session session)
private

Definition at line 48 of file export_filename.cc.

Member Function Documentation

void ARDOUR::ExportFilename::add_field ( XMLNode node,
std::string const &  name,
bool  enabled,
std::string const &  value = "" 
)
private

Definition at line 329 of file export_filename.cc.

ExportFilename::FieldPair ARDOUR::ExportFilename::analyse_folder ( )
private

Definition at line 377 of file export_filename.cc.

DateFormat ARDOUR::ExportFilename::get_date_format ( ) const
inline

Definition at line 70 of file export_filename.h.

string ARDOUR::ExportFilename::get_date_format_str ( DateFormat  format) const

Definition at line 256 of file export_filename.cc.

ExportFilename::FieldPair ARDOUR::ExportFilename::get_field ( XMLNode const &  node,
std::string const &  name 
)
private

Definition at line 346 of file export_filename.cc.

std::string ARDOUR::ExportFilename::get_folder ( ) const
inline

Definition at line 67 of file export_filename.h.

string ARDOUR::ExportFilename::get_formatted_time ( std::string const &  format) const
private

Definition at line 319 of file export_filename.cc.

std::string ARDOUR::ExportFilename::get_label ( ) const
inline

Definition at line 74 of file export_filename.h.

string ARDOUR::ExportFilename::get_path ( ExportFormatSpecPtr  format) const

Definition at line 168 of file export_filename.cc.

uint32_t ARDOUR::ExportFilename::get_revision ( ) const
inline

Definition at line 75 of file export_filename.h.

XMLNode & ARDOUR::ExportFilename::get_state ( void  )

Definition at line 81 of file export_filename.cc.

TimeFormat ARDOUR::ExportFilename::get_time_format ( ) const
inline

Definition at line 69 of file export_filename.h.

string ARDOUR::ExportFilename::get_time_format_str ( TimeFormat  format) const

Definition at line 238 of file export_filename.cc.

void ARDOUR::ExportFilename::set_channel ( uint32_t  value)
inline

Definition at line 83 of file export_filename.h.

void ARDOUR::ExportFilename::set_channel_config ( ExportChannelConfigPtr  cc)
inline

Definition at line 87 of file export_filename.h.

void ARDOUR::ExportFilename::set_date_format ( DateFormat  format)

Definition at line 292 of file export_filename.cc.

bool ARDOUR::ExportFilename::set_folder ( std::string  path)

Definition at line 311 of file export_filename.cc.

void ARDOUR::ExportFilename::set_label ( std::string  value)

Definition at line 304 of file export_filename.cc.

void ARDOUR::ExportFilename::set_revision ( uint32_t  value)
inline

Definition at line 82 of file export_filename.h.

int ARDOUR::ExportFilename::set_state ( const XMLNode node)

Definition at line 105 of file export_filename.cc.

void ARDOUR::ExportFilename::set_time_format ( TimeFormat  format)

Definition at line 280 of file export_filename.cc.

void ARDOUR::ExportFilename::set_timespan ( ExportTimespanPtr  ts)
inline

Definition at line 86 of file export_filename.h.

Friends And Related Function Documentation

friend class ExportElementFactory
friend

Definition at line 55 of file export_filename.h.

Member Data Documentation

uint32_t ARDOUR::ExportFilename::channel
private

Definition at line 107 of file export_filename.h.

ExportChannelConfigPtr ARDOUR::ExportFilename::channel_config
private

Definition at line 119 of file export_filename.h.

DateFormat ARDOUR::ExportFilename::date_format
private

Definition at line 111 of file export_filename.h.

std::string ARDOUR::ExportFilename::folder
private

Definition at line 109 of file export_filename.h.

bool ARDOUR::ExportFilename::include_channel

Definition at line 96 of file export_filename.h.

bool ARDOUR::ExportFilename::include_channel_config

Definition at line 94 of file export_filename.h.

bool ARDOUR::ExportFilename::include_date

Definition at line 99 of file export_filename.h.

bool ARDOUR::ExportFilename::include_format_name

Definition at line 95 of file export_filename.h.

bool ARDOUR::ExportFilename::include_label

Definition at line 91 of file export_filename.h.

bool ARDOUR::ExportFilename::include_revision

Definition at line 93 of file export_filename.h.

bool ARDOUR::ExportFilename::include_session

Definition at line 92 of file export_filename.h.

bool ARDOUR::ExportFilename::include_time

Definition at line 98 of file export_filename.h.

bool ARDOUR::ExportFilename::include_timespan

Definition at line 97 of file export_filename.h.

std::string ARDOUR::ExportFilename::label
private

Definition at line 105 of file export_filename.h.

uint32_t ARDOUR::ExportFilename::revision
private

Definition at line 106 of file export_filename.h.

Session& ARDOUR::ExportFilename::session
private

Definition at line 103 of file export_filename.h.

TimeFormat ARDOUR::ExportFilename::time_format
private

Definition at line 112 of file export_filename.h.

struct tm* ARDOUR::ExportFilename::time_struct
private

Definition at line 116 of file export_filename.h.

ExportTimespanPtr ARDOUR::ExportFilename::timespan
private

Definition at line 118 of file export_filename.h.


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