cooling/cooling.cc
/// CTOR. Just records the program options.
/// 1. Test mode
/// 2. Console log option
/// 3. Configuration file name
///
CTOR. Just records the program options.
1. Test mode
2. Console log option
3. Configuration file name
CTOR . Just records the program options . 1 . Test mode 2 . Console log option 3 . Configuration file name
Cooling::Cooling(boost::program_options::variables_map &vm)
    : m_last_blink(boost::posix_time::microsec_clock::universal_time()),
      m_cfg_path (expand_home("~/.config/rsked/cooling.json")),
      m_rsked_bin_path( expand_home("~/bin/rsked") ),
      m_rsked_cfg_path( expand_home("~/.config/rsked/rsked.json") )
{
    m_test_mode = (vm.count("test") > 0);
    m_console_log = (vm.count("console") > 0);
    if (vm.count("config") > 0) {
        m_cfg_path = expand_home(vm["config"].as<std::string>());
    }
}
Cooling :: Cooling ( boost :: program_options :: variables_map & vm ) : m_last_blink ( boost :: posix_time :: microsec_clock :: universal_time ( ) ) , m_cfg_path ( expand_home ( " " ) ) , m_rsked_bin_path ( expand_home ( " " ) ) , m_rsked_cfg_path ( expand_home ( " " ) ) { m_test_mode = ( vm . count ( " " ) > 0 ) ; m_console_log = ( vm . count ( " " ) > 0 ) ; if ( vm . count ( " " ) > 0 ) { m_cfg_path = expand_home ( vm [ " " ] . as < std :: string > ( ) ) ; } }
CTOR.
CTOR .