Ardour  9.0-pre0-386-g96ef4d20f2
AudioGrapher::BroadcastInfo Class Reference

#include <broadcast_info.h>

Inheritance diagram for AudioGrapher::BroadcastInfo:
[legend]

Public Member Functions

 BroadcastInfo ()
 Construct empty broadcast info. More...
 
virtual ~BroadcastInfo ()
 
std::string get_error () const
 Returns last error sring from libsndfile. More...
 
bool load_from_file (std::string const &filename)
 
bool load_from_file (SNDFILE *sf)
 
std::string get_description () const
 
int64_t get_time_reference () const
 
struct tm get_origination_time () const
 
std::string get_originator () const
 
std::string get_originator_ref () const
 
bool write_to_file (std::string const &filename)
 
bool write_to_file (SNDFILE *sf)
 
bool write_to_file (SndfileHandle *sf)
 
void set_description (std::string const &desc)
 
void set_time_reference (int64_t when)
 
void set_origination_time (struct tm *now=0)
 
virtual void set_originator (std::string const &str="")
 
void set_originator_ref (std::string const &str="")
 
bool has_info () const
 Returns true if a info has been succesfully loaded or anything has been manually set. More...
 

Protected Member Functions

void update_error ()
 

Protected Attributes

SF_BROADCAST_INFO * info
 
struct tm _time
 
std::string error
 
bool _has_info
 

Detailed Description

Definition at line 37 of file audiographer/audiographer/broadcast_info.h.

Constructor & Destructor Documentation

◆ BroadcastInfo()

AudioGrapher::BroadcastInfo::BroadcastInfo ( )

Construct empty broadcast info.

◆ ~BroadcastInfo()

virtual AudioGrapher::BroadcastInfo::~BroadcastInfo ( )
virtual

Member Function Documentation

◆ get_description()

std::string AudioGrapher::BroadcastInfo::get_description ( ) const

◆ get_error()

std::string AudioGrapher::BroadcastInfo::get_error ( ) const
inline

Returns last error sring from libsndfile.

Definition at line 46 of file audiographer/audiographer/broadcast_info.h.

◆ get_origination_time()

struct tm AudioGrapher::BroadcastInfo::get_origination_time ( ) const

◆ get_originator()

std::string AudioGrapher::BroadcastInfo::get_originator ( ) const

◆ get_originator_ref()

std::string AudioGrapher::BroadcastInfo::get_originator_ref ( ) const

◆ get_time_reference()

int64_t AudioGrapher::BroadcastInfo::get_time_reference ( ) const

◆ has_info()

bool AudioGrapher::BroadcastInfo::has_info ( ) const
inline

Returns true if a info has been succesfully loaded or anything has been manually set.

Definition at line 74 of file audiographer/audiographer/broadcast_info.h.

◆ load_from_file() [1/2]

bool AudioGrapher::BroadcastInfo::load_from_file ( SNDFILE *  sf)

◆ load_from_file() [2/2]

bool AudioGrapher::BroadcastInfo::load_from_file ( std::string const &  filename)

◆ set_description()

void AudioGrapher::BroadcastInfo::set_description ( std::string const &  desc)

◆ set_origination_time()

void AudioGrapher::BroadcastInfo::set_origination_time ( struct tm *  now = 0)

◆ set_originator()

virtual void AudioGrapher::BroadcastInfo::set_originator ( std::string const &  str = "")
virtual

Reimplemented in ARDOUR::BroadcastInfo.

◆ set_originator_ref()

void AudioGrapher::BroadcastInfo::set_originator_ref ( std::string const &  str = "")

◆ set_time_reference()

void AudioGrapher::BroadcastInfo::set_time_reference ( int64_t  when)

◆ update_error()

void AudioGrapher::BroadcastInfo::update_error ( )
protected

◆ write_to_file() [1/3]

bool AudioGrapher::BroadcastInfo::write_to_file ( SNDFILE *  sf)

◆ write_to_file() [2/3]

bool AudioGrapher::BroadcastInfo::write_to_file ( SndfileHandle sf)

◆ write_to_file() [3/3]

bool AudioGrapher::BroadcastInfo::write_to_file ( std::string const &  filename)

Member Data Documentation

◆ _has_info

bool AudioGrapher::BroadcastInfo::_has_info
protected

Definition at line 84 of file audiographer/audiographer/broadcast_info.h.

◆ _time

struct tm AudioGrapher::BroadcastInfo::_time
protected

Definition at line 78 of file audiographer/audiographer/broadcast_info.h.

◆ error

std::string AudioGrapher::BroadcastInfo::error
protected

Definition at line 82 of file audiographer/audiographer/broadcast_info.h.

◆ info

SF_BROADCAST_INFO* AudioGrapher::BroadcastInfo::info
protected

Definition at line 78 of file audiographer/audiographer/broadcast_info.h.


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