コード例 #1
0
void
InputManager::init(const std::string& filename)
{
  std::auto_ptr<lisp::Lisp> root (lisp::Parser::parse(filename));
  lisp::Properties rootp(root.get());

  std::cout << "InputManager: " << filename << std::endl;

  const lisp::Lisp* controller = 0;
  if(rootp.get("windstille-controller", controller) == false) {
    std::ostringstream msg;
    msg << "'" << filename << "' is not a windstille-controller file";
    throw std::runtime_error(msg.str());
  }
  
  impl = new InputManagerSDL(controller);
}
コード例 #2
0
ファイル: Verilator.cpp プロジェクト: duythanhphan/verilator
void V3Global::checkTree() { rootp()->checkTree(); }