Go2Py/cpp_bridge/include/unitree/common/service/base/service_config.hpp

37 lines
713 B
C++
Raw Normal View History

2024-01-04 03:45:40 +08:00
#ifndef __UT_SERVICE_CONFIG_HPP__
#define __UT_SERVICE_CONFIG_HPP__
#include <unitree/common/service/base/service_decl.hpp>
namespace unitree
{
namespace common
{
class ServiceConfig : public common::JsonConfig
{
public:
ServiceConfig();
virtual ~ServiceConfig();
ServiceConfig(const std::string& configFileName);
virtual void Parse(const std::string& configFileName);
//top-level field: ServiceName
const std::string& GetServiceName() const;
//top-level field: CpuIds
const std::string& GetCpuIds() const;
protected:
std::string mCpuIds;
std::string mServiceName;
};
typedef std::shared_ptr<ServiceConfig> ServiceConfigPtr;
}
}
#endif//__UT_SERVICE_CONFIG_HPP__