Commit e89311fc by Maarten L. Hekkelman

init compound factory in absence of CLIBD_MON

parent bab750fa
...@@ -1026,7 +1026,7 @@ const std::map<std::string,char> kBaseMap{ ...@@ -1026,7 +1026,7 @@ const std::map<std::string,char> kBaseMap{
class CompoundFactoryImpl class CompoundFactoryImpl
{ {
public: public:
CompoundFactoryImpl() {} CompoundFactoryImpl();
CompoundFactoryImpl(const std::string& file, CompoundFactoryImpl* next); CompoundFactoryImpl(const std::string& file, CompoundFactoryImpl* next);
...@@ -1098,6 +1098,15 @@ class CompoundFactoryImpl ...@@ -1098,6 +1098,15 @@ class CompoundFactoryImpl
// -------------------------------------------------------------------- // --------------------------------------------------------------------
CompoundFactoryImpl::CompoundFactoryImpl()
{
for (const auto&[ key, value]: kAAMap)
mKnownPeptides.insert(key);
for (const auto&[ key, value]: kBaseMap)
mKnownBases.insert(key);
}
CompoundFactoryImpl::CompoundFactoryImpl(const std::string& file, CompoundFactoryImpl* next) CompoundFactoryImpl::CompoundFactoryImpl(const std::string& file, CompoundFactoryImpl* next)
: mPath(file), mFile(file), mNext(next) : mPath(file), mFile(file), mNext(next)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment