Changeset 152 in pacpusframework for branches/2.0-beta1/src/DBITEPlayerLib/DbtPlyFileManager.cpp
- Timestamp:
- Aug 1, 2013, 10:45:50 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0-beta1/src/DBITEPlayerLib/DbtPlyFileManager.cpp
r141 r152 21 21 DECLARE_STATIC_LOGGER("pacpus.core.DbtPlyFileManager"); 22 22 23 const stringkPropertyVerbose = "verbose";23 const char * kPropertyVerbose = "verbose"; 24 24 const int kPropertyVerboseDefaultValue = 1; 25 25 26 const stringkPropertyDbiteFileName = "dbt";26 const char * kPropertyDbiteFileName = "dbt"; 27 27 28 28 // It is the maximum time elapsed between the computation of the tDbt and the data replay in microseconds … … 31 31 //////////////////////////////////////////////////////////////////////////////// 32 32 /// Constructor. 33 DbtPlyFileManager::DbtPlyFileManager(QString name):ComponentBase(name) 33 DbtPlyFileManager::DbtPlyFileManager(QString name) 34 : ComponentBase(name) 34 35 { 35 36 LOG_TRACE("constructor"); … … 85 86 ///////////////////////////////////////// 86 87 { 87 QString verbose = param.getProperty(kPropertyVerbose.c_str());88 QString verbose = config.getProperty(kPropertyVerbose); 88 89 if (verbose.isNull()) { 89 90 LOG_INFO("property " << kPropertyVerbose << " not set." … … 103 104 104 105 ///////////////////////////////////////// 105 dbtProperty_ = param.getProperty(kPropertyDbiteFileName.c_str());106 mShowGui = param.getProperty("ui").toInt();106 dbtProperty_ = config.getProperty(kPropertyDbiteFileName); 107 mShowGui = config.getProperty("ui").toInt(); 107 108 mDbtDataPath = mEngine->getDataDir(); 108 109 … … 180 181 void DbtPlyFileManager::displayUI() 181 182 { 182 LOG_WARN("component '" << componentName<< "' has no user interface. Please set ui property to 0 in your XML configuration");183 LOG_WARN("component '" << name() << "' has no user interface. Please set ui property to 0 in your XML configuration"); 183 184 } 184 185 … … 300 301 deltaTDbtTab_[(deltaTDbtTabLoop_++)%1000] = deltaT; 301 302 if (deltaT > kMaxPendingTimeFromEngineMicrosecs) { 302 LOG_WARN( componentName<< ": data not replayed: elapsed time since engine notification too big:" << deltaT << "us");303 LOG_WARN(name() << ": data not replayed: elapsed time since engine notification too big:" << deltaT << "us"); 303 304 return; 304 305 }
Note:
See TracChangeset
for help on using the changeset viewer.