本文整理汇总了C++中FileParser::parseFile方法的典型用法代码示例。如果您正苦于以下问题:C++ FileParser::parseFile方法的具体用法?C++ FileParser::parseFile怎么用?C++ FileParser::parseFile使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FileParser
的用法示例。
在下文中一共展示了FileParser::parseFile方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
int main(int argc, char *argv[]) {
CommandHandler ch;
FileParser fp;
Queue startQueue;
Queue endQueue;
biquad_t treble;
biquad_t bass;
ch.handleStartCommands(argc, argv);
fp.parseFile(&startQueue, ch.getInputFileName());
std::cout << "Parsed file into " << startQueue.getQueueSize() << " blocks."
<< std::endl;
Coefficient c;
c.bassCoeffiecient(ch.getBassIntensity(), &(bass.b0), &(bass.b1), &(bass.b2),
&(bass.a1), &(bass.a2));
c.trebleCoefficient(ch.getTrebleIntensity(), &(treble.b0), &(treble.b1),
&(treble.b2), &(treble.a1), &(treble.a2));
Equalizer *eq1 = new Equalizer(&startQueue, &endQueue, treble, bass, "Eq1");
Equalizer *eq2 = new Equalizer(&startQueue, &endQueue, treble, bass, "Eq2");
Equalizer *eq3 = new Equalizer(&startQueue, &endQueue, treble, bass, "Eq3");
Equalizer *eq4 = new Equalizer(&startQueue, &endQueue, treble, bass, "Eq4");
Equalizer *eq5 = new Equalizer(&startQueue, &endQueue, treble, bass, "Eq5");
Equalizer *eq6 = new Equalizer(&startQueue, &endQueue, treble, bass, "Eq6");
while (startQueue.getQueueSize() > startQueue.getBlockCount())
;
eq1->stop();
eq2->stop();
eq3->stop();
eq4->stop();
eq5->stop();
eq6->stop();
endQueue.writeToFile(ch.getOutputFileName());
return 0;
}
示例2: initFromFile
/**
* \brief Initialize from a file
* \param filePath full path of the configuration filePath
*/
void ExecConfiguration::initFromFile(std::string filePath) throw (UserException, std::exception)
{
FileParser fileParser;
fileParser.parseFile(filePath);
mconfig = fileParser.getConfiguration();
}