⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.cpp

📁 rcssserver3d Robocup 3D比赛官方指定平台
💻 CPP
字号:
#include <zeitgeist/zeitgeist.h>#include <oxygen/oxygen.h>#if HAVE_KEROSIN_H#include <kerosin/kerosin.h>#endifusing namespace boost;using namespace std;using namespace zeitgeist;#ifdef GetObject#undef GetObject#endifint main(){    Zeitgeist zg("." PACKAGE_NAME);    shared_ptr<CoreContext> context = zg.CreateContext();#if HAVE_KEROSIN_H    kerosin::Kerosin kKerosin(zg);#endif    oxygen::Oxygen kOxygen(zg);    shared_ptr<ScriptServer> scriptServer = shared_static_cast<ScriptServer>(context->Get("/sys/server/script"));    scriptServer->Run("coretest.rb");    cout << "CoreTest - A Small Interactive Text-Based Console Sample" << endl << endl;    cout << "Enter 'exit' command to quit application" << endl << endl;    bool done = false;    while (!done)    {        std::string command = "";        boost::shared_ptr<Leaf> selectedObject = scriptServer->GetContext()->GetSelection();        cout << endl << selectedObject->GetFullPath() << "> ";        getline(cin, command,'\n');        if (command.compare("exit")==0)        {            done = true;        }        else        {            scriptServer->Eval(command.c_str());        }    }    return 0;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -