- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/TextUI/Query/MoleculesTextQuery.cpp
rd754bb r8df74d 24 24 #include <Descriptors/MoleculeDescriptor.hpp> 25 25 #include <Descriptors/MoleculeIdDescriptor.hpp> 26 #include "TextUI/ Query/TextQuery.hpp"26 #include "TextUI/TextDialog.hpp" 27 27 28 28 #include "Helpers/Log.hpp" … … 39 39 bool TextDialog::MoleculesTextQuery::handle() { 40 40 int idxOfMol=-1; 41 std::cout << getDescription() << ": ";41 Log() << Verbose(0) << getTitle(); 42 42 std::string line; 43 getline( std::cin,line);43 getline(cin,line); 44 44 // dissect by " " 45 45 std::string::iterator olditer = line.begin(); … … 50 50 temp = World::getInstance().getMolecule(MoleculeById(idxOfMol)); 51 51 if(!temp && idxOfMol!=-1){ 52 std::cout << "Invalid Molecule Index" << idxOfMol << std::endl;52 Log() << Verbose(0) << "Invalid Molecule Index" << idxOfMol << endl; 53 53 break; 54 54 } … … 62 62 temp = World::getInstance().getMolecule(MoleculeById(idxOfMol)); 63 63 if(!temp && idxOfMol!=-1){ 64 std::cout << "Invalid Molecule Index" << idxOfMol << std::endl;64 Log() << Verbose(0) << "Invalid Molecule Index" << idxOfMol << endl; 65 65 tmp.push_back(temp); 66 66 }
Note:
See TracChangeset
for help on using the changeset viewer.