text: /*
   * FactsQueryCommand.h
   *
   *  Created on: Jan 20, 2017
   *      Author: stefan
   */
  
  #ifndef SRC_COMMANDS_FACTSQUERYCOMMAND_H_
  #define SRC_COMMANDS_FACTSQUERYCOMMAND_H_
  
  #include <commands/Command.h>
  #include <memory>
  #include <QJsonObject>
  
  namespace kbcr
  {
  	class KnowledgebaseCreator;
  	/**
  	 * Class inheriting from Command interface used to create a FactsQuery
  	 */
  	class FactsQueryCommand : public Command, public std::enable_shared_from_this<FactsQueryCommand>
  	{
  		Q_OBJECT
  	public:
  		FactsQueryCommand(KnowledgebaseCreator* gui, QString factsString);
  		virtual ~FactsQueryCommand();
  
  		void execute();
  		void undo();
  
  		QJsonObject toJSON();
  
  		KnowledgebaseCreator* gui;
  		QString factsString;
  	};
  
  } /* namespace kbcr */
  
  #endif /* SRC_COMMANDS_FACTSQUERYCOMMAND_H_ */
  