Example #1
0
void TR_svtImp::loadDataset(const string &path)
{
    train.push_back(vector< Ptr<Object> >());
    test.push_back(vector< Ptr<Object> >());
    validation.push_back(vector< Ptr<Object> >());

    string trainXml(path + "train.xml");
    string testXml(path + "test.xml");

    // loading train images description
    xmlParse(trainXml, train.back());

    // loading test images description
    xmlParse(testXml, test.back());
}
int ut_ANameValuePair_General()
{
  int iRet = 0x0;

  std::cerr << "ut_ANameValuePair_General" << std::endl;
  
  testSimple(iRet);
  NEWLINE_UNIT_TEST();
  testXml(iRet);
  NEWLINE_UNIT_TEST();
  testJson(iRet);
  NEWLINE_UNIT_TEST();
  testRegValue(iRet);
  NEWLINE_UNIT_TEST();
  testHtml(iRet);
  NEWLINE_UNIT_TEST();
  testFormMultiPart(iRet);

  return iRet;
}