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
39int process_file(const shared_ptr<Bead>&, const char*);
40
41int run_example();
42
43int create_new_domain(const shared_ptr<Bead>&, istringstream&);
44
45int disable_object(const shared_ptr<Bead>&, istringstream&);
46int enable_object(const shared_ptr<Bead>&, istringstream&);
47int erase_object(const shared_ptr<Bead>&, istringstream&);
48
49int save_object(const shared_ptr<DomainBase>&, istringstream&);
50int list_object(const shared_ptr<DomainBase>&, istringstream&);
51int suspend_object(const shared_ptr<DomainBase>&, istringstream&);
52int protect_object(const shared_ptr<DomainBase>&, istringstream&);
53
54int create_new_external_module(const shared_ptr<DomainBase>&, istringstream&);
55int create_new_nodegroup(const shared_ptr<DomainBase>&, istringstream&);
56int create_new_customnodegroup(const shared_ptr<DomainBase>&, istringstream&);
57int create_new_elementgroup(const shared_ptr<DomainBase>&, istringstream&);
58int create_new_generate(const shared_ptr<DomainBase>&, istringstream&);
59int create_new_generatebyrule(const shared_ptr<DomainBase>&, istringstream&);
60int create_new_generatebyplane(const shared_ptr<DomainBase>&, istringstream&);
61int create_new_generatebypoint(const shared_ptr<DomainBase>&, istringstream&);
62int create_new_groupgroup(const shared_ptr<DomainBase>&, istringstream&);
63int create_new_initial(const shared_ptr<DomainBase>&, istringstream&);
64int create_new_node(const shared_ptr<DomainBase>&, istringstream&);
65
66int set_property(const shared_ptr<DomainBase>&, istringstream&);
67
68int print_info(const shared_ptr<DomainBase>&, istringstream&);
69
70int print_command();
71int execute_command(istringstream&);
72
73#endif
74
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:898
int protect_object(const shared_ptr< DomainBase > &, istringstream &)
Definition command.cpp:918
int create_new_nodegroup(const shared_ptr< DomainBase > &, istringstream &)
Definition command.cpp:936
int erase_object(const shared_ptr< Bead > &, istringstream &)
Definition command.cpp:794
int enable_object(const shared_ptr< Bead > &, istringstream &)
Definition command.cpp:757
int create_new_groupgroup(const shared_ptr< DomainBase > &, istringstream &)
Definition command.cpp:1112
int save_object(const shared_ptr< DomainBase > &, istringstream &)
Definition command.cpp:829
int create_new_generatebyplane(const shared_ptr< DomainBase > &, istringstream &)
Definition command.cpp:1062
int disable_object(const shared_ptr< Bead > &, istringstream &)
Definition command.cpp:721
int print_command()
Definition command.cpp:1649
int print_info(const shared_ptr< DomainBase > &, istringstream &)
Definition command.cpp:1488
int execute_command(istringstream &)
Definition command.cpp:1734
int create_new_generate(const shared_ptr< DomainBase > &, istringstream &)
Definition command.cpp:983
int process_command(const shared_ptr< Bead > &, istringstream &)
Definition command.cpp:394
int create_new_generatebyrule(const shared_ptr< DomainBase > &, istringstream &)
Definition command.cpp:1033
int create_new_elementgroup(const shared_ptr< DomainBase > &, istringstream &)
Definition command.cpp:966
int set_property(const shared_ptr< DomainBase > &, istringstream &)
Definition command.cpp:1283
int run_example()
Definition command.cpp:1595
int create_new_customnodegroup(const shared_ptr< DomainBase > &, istringstream &)
Definition command.cpp:953
int create_new_external_module(const shared_ptr< DomainBase > &, istringstream &)
Definition command.cpp:1129
int create_new_node(const shared_ptr< DomainBase > &, istringstream &)
Definition command.cpp:1266
int list_object(const shared_ptr< DomainBase > &, istringstream &)
Definition command.cpp:869
int create_new_domain(const shared_ptr< Bead > &, istringstream &)
Definition command.cpp:701
int process_file(const shared_ptr< Bead > &, const char *)
Definition command.cpp:649
int create_new_generatebypoint(const shared_ptr< DomainBase > &, istringstream &)
Definition command.cpp:1087
int create_new_initial(const shared_ptr< DomainBase > &, istringstream &)
Definition command.cpp:1149