本文整理汇总了C++中OptionsCont::writeConfiguration方法的典型用法代码示例。如果您正苦于以下问题:C++ OptionsCont::writeConfiguration方法的具体用法?C++ OptionsCont::writeConfiguration怎么用?C++ OptionsCont::writeConfiguration使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OptionsCont
的用法示例。
在下文中一共展示了OptionsCont::writeConfiguration方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: writeHeader
void NWWriter_DlrNavteq::writeHeader(OutputDevice& device, const OptionsCont& oc) {
device << "# Format matches Extraction version: V6.5 \n";
std::stringstream tmp;
oc.writeConfiguration(tmp, true, false, false);
tmp.seekg(std::ios_base::beg);
std::string line;
while (!tmp.eof()) {
std::getline(tmp, line);
device << "# " << line << "\n";
}
device << "#\n";
}
示例2: writeHeader
void NWWriter_DlrNavteq::writeHeader(OutputDevice& device, const OptionsCont& oc) {
time_t rawtime;
time(&rawtime);
char buffer [80];
strftime(buffer, 80, "on %c", localtime(&rawtime));
device << "# Generated " << buffer << " by " << oc.getFullName() << "\n";
device << "# Format matches GdfExtractor version: V6.0\n";
std::stringstream tmp;
oc.writeConfiguration(tmp, true, false, false);
tmp.seekg(std::ios_base::beg);
std::string line;
while (!tmp.eof()) {
std::getline(tmp, line);
device << "# " << line << "\n";
}
device << "#\n";
}