本文整理汇总了C++中DataFile::PatternExplainCount方法的典型用法代码示例。如果您正苦于以下问题:C++ DataFile::PatternExplainCount方法的具体用法?C++ DataFile::PatternExplainCount怎么用?C++ DataFile::PatternExplainCount使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DataFile
的用法示例。
在下文中一共展示了DataFile::PatternExplainCount方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: DealWithMatch
bool DealWithMatch(const vector <string> &LineList, const boost::regex &RegExpress, const DataFile &TypeEntry, ofstream &TableStream,
const size_t FilingIndex)
// MAJOR robustness issues here! See notes in this function.
{
// cerr << "Going into DealWithMatch()\n";
bool IsSuccessful;
const vector <string> Captures = ObtainCaptures(RegExpress, LineList[0], TypeEntry.PatternExplainCount() + 1);
// cerr << "Got Captures\n";
const vector <string> Descriptors = GatherInfo(LineList, Captures, TypeEntry.GiveAllPatternExplains(),
TypeEntry.GiveAllAssignExpressions(), IsSuccessful);
// cerr << "Got Descriptors\n";
// May need to put in controls of some sort to determine whether something should be quoted or not.
if (IsSuccessful)
{
TableStream << GiveDelimitedList(LineList, ',') << ',' << FilingIndex << ',' << GiveDelimitedList(Descriptors, ',') << "\n";
}
// This above segment prints to the appropriate subcatalogue file the following info:
// Filename, File Group number, Volume Name, FileSize, FilingIndex, and Date information for the file, and any other descriptor information.
// there is always DateTime_Info for Descriptors[0]
return(TableStream.good());
}