suanPan
Loading...
Searching...
No Matches
command.h
Go to the documentation of this file.
1/*******************************************************************************
2 * Copyright (C) 2017-2023 Theodore Chang
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 ******************************************************************************/
29#ifndef COMMAND_H
30#define COMMAND_H
31
32#include <suanPan.h>
33
34class Bead;
35class DomainBase;
36
37int process_command(const shared_ptr<Bead>&, istringstream&);
38
39bool normalise_command(string&, string&);
40
41int process_file(const shared_ptr<Bead>&, const char*);
42
43int run_example();
44
45int create_new_domain(const shared_ptr<Bead>&, istringstream&);
46
47int disable_object(const shared_ptr<Bead>&, istringstream&);
48int enable_object(const shared_ptr<Bead>&, istringstream&);
49int erase_object(const shared_ptr<Bead>&, istringstream&);
50
51int save_object(const shared_ptr<DomainBase>&, istringstream&);
52int list_object(const shared_ptr<DomainBase>&, istringstream&);
53int suspend_object(const shared_ptr<DomainBase>&, istringstream&);
54int protect_object(const shared_ptr<DomainBase>&, istringstream&);
55
56int create_new_external_module(const shared_ptr<DomainBase>&, istringstream&);
57int create_new_initial(const shared_ptr<DomainBase>&, istringstream&);
58int create_new_node(const shared_ptr<DomainBase>&, istringstream&);
59
60int set_property(const shared_ptr<DomainBase>&, istringstream&);
61
62int print_info(const shared_ptr<DomainBase>&, istringstream&);
63
64int print_command();
65int execute_command(istringstream&);
66
67#endif
68
A Bead class is a top level container.
Definition Bead.h:33
The DomainBase class is a template.
Definition DomainBase.h:104
int suspend_object(const shared_ptr< DomainBase > &, istringstream &)
Definition command.cpp:916
int protect_object(const shared_ptr< DomainBase > &, istringstream &)
Definition command.cpp:936
bool normalise_command(string &, string &)
Definition command.cpp:647
int erase_object(const shared_ptr< Bead > &, istringstream &)
Definition command.cpp:802
int enable_object(const shared_ptr< Bead > &, istringstream &)
Definition command.cpp:765
int save_object(const shared_ptr< DomainBase > &, istringstream &)
Definition command.cpp:837
int disable_object(const shared_ptr< Bead > &, istringstream &)
Definition command.cpp:729
int print_command()
Definition command.cpp:1474
int print_info(const shared_ptr< DomainBase > &, istringstream &)
Definition command.cpp:1313
int execute_command(istringstream &)
Definition command.cpp:1534
int process_command(const shared_ptr< Bead > &, istringstream &)
Definition command.cpp:379
int set_property(const shared_ptr< DomainBase > &, istringstream &)
Definition command.cpp:1108
int run_example()
Definition command.cpp:1420
int create_new_external_module(const shared_ptr< DomainBase > &, istringstream &)
Definition command.cpp:954
int create_new_node(const shared_ptr< DomainBase > &, istringstream &)
Definition command.cpp:1091
int list_object(const shared_ptr< DomainBase > &, istringstream &)
Definition command.cpp:877
int create_new_domain(const shared_ptr< Bead > &, istringstream &)
Definition command.cpp:709
int process_file(const shared_ptr< Bead > &, const char *)
Definition command.cpp:668
int create_new_initial(const shared_ptr< DomainBase > &, istringstream &)
Definition command.cpp:974