rsked/oggplayer.cc
/// Init: extract binary path for ogg player
///
extract binary path for ogg player
extract binary path for ogg player
void Ogg_player::initialize( Config& cfg, bool  )
{
    namespace fs = boost::filesystem;
    cfg.get_bool("Ogg_player", "enabled" ,m_enabled);
    if (not m_enabled) {
        LOG_INFO(Lgr) << "Ogg_player '" << m_name << "' (disabled)";
    }
    fs::path binpath { DefaultBinPath };
    cfg.get_pathname("Ogg_player","ogg_bin_path",
                 FileCond::MustExist, binpath);
    m_cm->set_binary( binpath );
    fs::path wkdir {"."};
    if (cfg.get_pathname("Ogg_player","working_dir",
                         FileCond::MustExistDir, wkdir)) {
        m_wdir = wkdir;
        m_cm->set_wdir( m_wdir );
    }
    LOG_INFO(Lgr) << "Ogg_player '" << m_name << "' initialized";
}
void Ogg_player :: initialize ( Config & cfg , bool ) { namespace fs = boost :: filesystem ; cfg . get_bool ( " " , " " , m_enabled ) ; if ( not m_enabled ) { LOG_INFO ( Lgr ) << " " << m_name << " " ; } fs :: path binpath { DefaultBinPath } ; cfg . get_pathname ( " " , " " , FileCond :: MustExist , binpath ) ; m_cm -> set_binary ( binpath ) ; fs :: path wkdir { " " } ; if ( cfg . get_pathname ( " " , " " , FileCond :: MustExistDir , wkdir ) ) { m_wdir = wkdir ; m_cm -> set_wdir ( m_wdir ) ; } LOG_INFO ( Lgr ) << " " << m_name << " " ; }
Init: extract binary path for ogg player
Init : extract binary path for ogg player
/* testp */ //