/* * Project: MoleCuilder * Description: creates and alters molecular systems * Copyright (C) 2010-2012 University of Bonn. All rights reserved. * Please see the LICENSE file or "Copyright notice" in builder.cpp for details. */ /* * BoxCommandLineQuery.cpp * * Created on: Oct 25, 2010 * Author: heber */ // include config.h #ifdef HAVE_CONFIG_H #include #endif #include "CodePatterns/MemDebug.hpp" #include "Actions/Values.hpp" #include "CommandLineUI/Query/CommandLineQuery.hpp" #include "CommandLineUI/CommandLineParser.hpp" #include "CodePatterns/Log.hpp" #include "CodePatterns/Verbose.hpp" #include "LinearAlgebra/RealSpaceMatrix.hpp" CommandLineDialog::BoxCommandLineQuery::BoxCommandLineQuery(std::string title, std::string _description) : Dialog::BoxQuery(title, _description) {} CommandLineDialog::BoxCommandLineQuery::~BoxCommandLineQuery() {} bool CommandLineDialog::BoxCommandLineQuery::handle() { BoxValue temp; if (CommandLineParser::getInstance().vm.count(getTitle())) { temp = CommandLineParser::getInstance().vm[getTitle()].as< BoxValue >(); tmp = temp.toBox(); return true; } else { ELOG(1, "CommandLineUI parsing error: Missing symmetric box matrix for " << getTitle() << "."); return false; } }