当前位置: 首页>>代码示例>>C++>>正文


C++ ConfigElementPtr::getFullName方法代码示例

本文整理汇总了C++中jccl::ConfigElementPtr::getFullName方法的典型用法代码示例。如果您正苦于以下问题:C++ ConfigElementPtr::getFullName方法的具体用法?C++ ConfigElementPtr::getFullName怎么用?C++ ConfigElementPtr::getFullName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在jccl::ConfigElementPtr的用法示例。


在下文中一共展示了ConfigElementPtr::getFullName方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: configureProxy

/**
 * Check if the device factory or proxy factory can handle the element.
 */
bool InputManager::configureProxy(jccl::ConfigElementPtr element)
{
   std::string proxy_name = element->getFullName();

vpr::DebugOutputGuard dbg_output(gadgetDBG_INPUT_MGR, vprDBG_STATE_LVL,
                                 std::string("gadget::InputManager::configureProxy: Named: ") + proxy_name + std::string("\n"),
                                 std::string("done configuring proxy\n"));

   Proxy* new_proxy;

   // Tell the factory to load the proxy
   // NOTE: The config for the proxy registers it with the input manager
   new_proxy = ProxyFactory::instance()->loadProxy(element);

   // Check for success
   if(NULL == new_proxy)
   {
      vprDEBUG(vprDBG_ERROR,vprDBG_CRITICAL_LVL)
         << clrOutNORM(clrRED,"ERROR:")
         << " gadget::InputManager::configureProxy: Proxy construction failed:"
         << proxy_name << std::endl << vprDEBUG_FLUSH;
      return false;
   }
   vprASSERT(proxy_name == new_proxy->getName());

   // -- Add to proxy table
   if(false == addProxy(new_proxy))
   {
      return false;
   }

   return true;
}
开发者ID:rpavlik,项目名称:vrjuggler-2.2-debs,代码行数:36,代码来源:InputManager.cpp

示例2: configureDevice

/**
 * Check if the device factory or proxy factory can handle the element.
 */
bool InputManager::configureDevice(jccl::ConfigElementPtr element)
{
   bool ret_val;
   std::string dev_name = element->getFullName();

   vpr::DebugOutputGuard dbg_output(gadgetDBG_INPUT_MGR, vprDBG_STATE_LVL,
                                 std::string("InputManager::configureDevice: device[") + dev_name + std::string("]\n"),
                                 std::string("done configuring device\n"));

   Input* new_device;
   new_device = DeviceFactory::instance()->loadDevice(element);

   if ((new_device != NULL) && (new_device->startSampling()))
   {
      addDevice(new_device);
      ret_val = true;
      vprDEBUG(gadgetDBG_INPUT_MGR,vprDBG_STATE_LVL)
         << "   Successfully added device: " << dev_name << std::endl
         << vprDEBUG_FLUSH;
   }
   else
   {
      vprDEBUG(vprDBG_ERROR,vprDBG_CRITICAL_LVL) << clrOutNORM(clrRED,"ERROR:")
         << "New device " << clrSetBOLD(clrCYAN) << dev_name << clrRESET
         << " failed to start.  Deleting instance" << std::endl
         << vprDEBUG_FLUSH;
      if ( NULL != new_device )
      {
         delete new_device;
      }

      ret_val = false;
   }

   return ret_val;
}
开发者ID:rpavlik,项目名称:vrjuggler-2.2-debs,代码行数:39,代码来源:InputManager.cpp

示例3: config

bool Proxy::config(jccl::ConfigElementPtr element)
{
   mName = element->getFullName();
   return true;
}
开发者ID:Michael-Lfx,项目名称:vrjuggler,代码行数:5,代码来源:Proxy.cpp

示例4: removeDevice

/**
 * Removes the device associated with the given element.
 */
bool InputManager::removeDevice(jccl::ConfigElementPtr element)
{
   return removeDevice(element->getFullName());
}
开发者ID:rpavlik,项目名称:vrjuggler-2.2-debs,代码行数:7,代码来源:InputManager.cpp

示例5: removeProxy

bool InputManager::removeProxy(jccl::ConfigElementPtr element)
{
   std::string proxy_name;
   proxy_name = element->getFullName();
   return removeProxy(proxy_name);
}
开发者ID:rpavlik,项目名称:vrjuggler-2.2-debs,代码行数:6,代码来源:InputManager.cpp


注:本文中的jccl::ConfigElementPtr::getFullName方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。