src: configuration file parsing
used boost::property_tree::info_parser for parsing nlsr's configuration file and
changed configuration command style to info command style. Removed tokenizer from
nlsr
Refs: #1542
Change-Id: If017ddd7eef5caa59b33940bfc27a71aa4de266b
diff --git a/src/sequencing-manager.cpp b/src/sequencing-manager.cpp
index 9a5ec89..3d63a3d 100644
--- a/src/sequencing-manager.cpp
+++ b/src/sequencing-manager.cpp
@@ -42,8 +42,7 @@
{
cout << "Seq File Name: " << m_seqFileNameWithPath << endl;
std::ifstream inputFile(m_seqFileNameWithPath.c_str(), ios::binary);
- if (inputFile.good())
- {
+ if (inputFile.good()) {
inputFile >> m_combinedSeqNo;
splittSequenceNo(m_combinedSeqNo);
m_adjLsaSeq += 10;
@@ -52,8 +51,7 @@
combineSequenceNo();
inputFile.close();
}
- else
- {
+ else {
splittSequenceNo(0);
}
}
@@ -62,8 +60,7 @@
SequencingManager::setSeqFileName(string filePath)
{
m_seqFileNameWithPath = filePath;
- if (m_seqFileNameWithPath.empty())
- {
+ if (m_seqFileNameWithPath.empty()) {
m_seqFileNameWithPath = getUserHomeDirectory();
}
m_seqFileNameWithPath = m_seqFileNameWithPath + "/nlsrSeqNo.txt";
@@ -73,8 +70,7 @@
SequencingManager::getUserHomeDirectory()
{
string homeDirPath(getpwuid(getuid())->pw_dir);
- if (homeDirPath.empty())
- {
+ if (homeDirPath.empty()) {
homeDirPath = getenv("HOME");
}
return homeDirPath;