Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
LoadCommand.h
Go to the documentation of this file.
1
6#pragma once
7
8#include <ast/Command.h>
10
12
13namespace cli {
14
15class LoadCommand : public Command {
16 std::string m_libraryName;
17
18public:
19 LoadCommand ( std::string libraryName ) : m_libraryName ( std::move ( libraryName ) ) {
20 }
21
22 CommandResult run ( Environment & ) const override {
23 cli::LibraryLoader::load ( m_libraryName );
24 return CommandResult::OK;
25 }
26};
27
28} /* namespace cli */
29
Definition: Command.h:14
Definition: Environment.h:29
static void load(std::string name)
Definition: LibraryLoader.cpp:21
Definition: LoadCommand.h:15
CommandResult run(Environment &) const override
Definition: LoadCommand.h:22
LoadCommand(std::string libraryName)
Definition: LoadCommand.h:19
Definition: Arg.h:11
CommandResult
Definition: CommandResult.h:10
Definition: FordFulkerson.hpp:16