nameconfigtest.cpp
来自「一个语言识别引擎」· C++ 代码 · 共 40 行
CPP
40 行
// -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*-
/*
* Copyright (C) 2006 Paul Fitzpatrick
* CopyPolicy: Released under the terms of the GNU GPL v2.0.
*
*/
#include <yarp/NameConfig.h>
#include "TestList.h"
using namespace yarp;
class NameConfigTest : public UnitTest {
public:
virtual String getName() { return "NameConfigTest"; }
void testRead() {
report(0,"no tests yet");
//report(0,"checking writing the config file");
NameConfig nc;
//bool result = nc.createPath("/tmp/work/bozo/foo/namer.conf");
String fname = nc.getConfigFileName();
//String txt = nc.readConfig(fname);
report(0,fname);
//report(0,txt);
}
virtual void runTests() {
testRead();
}
};
static NameConfigTest theNameConfigTest;
UnitTest& getNameConfigTest() {
return theNameConfigTest;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?