src/engine/calculator_engine.cpp
void CalculatorEngine::start()
{
  PluginRegistry::getSharedInstance().initialize();
  cout << "Calculator engine started" << endl;

  // Print out all plugin entries
  std::vector<PluginEntry*> allEntries = PluginRegistry::getSharedInstance().getAll();
  for (auto entry : allEntries) {
    cout << "found plugin { " 
         << "type: " << entry->getType() 
         << ", name: " << entry->getName() 
         << ", libName: " << entry->getLibName() 
         << " }" << std::endl;
  }
}
/**
 * Starts the calculator engine.
 * Internally, this method will initialize the plugin registry.
 */
Starts the calculator engine.
Internally, this method will initialize the plugin registry.
Starts the calculator engine . Internally this method will initialize the plugin registry .
void CalculatorEngine::start()
{
  PluginRegistry::getSharedInstance().initialize();
  cout << "Calculator engine started" << endl;
  std::vector<PluginEntry*> allEntries = PluginRegistry::getSharedInstance().getAll();
  for (auto entry : allEntries) {
    cout << "found plugin { " 
         << "type: " << entry->getType() 
         << ", name: " << entry->getName() 
         << ", libName: " << entry->getLibName() 
         << " }" << std::endl;
  }
}
void CalculatorEngine :: start ( ) { PluginRegistry :: getSharedInstance ( ) . initialize ( ) ; cout << " " << endl ; std :: vector < PluginEntry * > allEntries = PluginRegistry :: getSharedInstance ( ) . getAll ( ) ; for ( auto entry : allEntries ) { cout << " " << " " << entry -> getType ( ) << " " << entry -> getName ( ) << " " << entry -> getLibName ( ) << " " << std :: endl ; } }
Starts the calculator engine.
Starts the calculator engine .
// Print out all plugin entries