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_elementgroup(const shared_ptr<DomainBase>&, istringstream&);
57int create_new_generate(const shared_ptr<DomainBase>&, istringstream&);
58int create_new_generatebyrule(const shared_ptr<DomainBase>&, istringstream&);
59int create_new_generatebyplane(const shared_ptr<DomainBase>&, istringstream&);
60int create_new_generatebypoint(const shared_ptr<DomainBase>&, istringstream&);
61int create_new_groupgroup(const shared_ptr<DomainBase>&, istringstream&);
62int create_new_initial(const shared_ptr<DomainBase>&, istringstream&);
63int create_new_node(const shared_ptr<DomainBase>&, istringstream&);
64
65int set_property(const shared_ptr<DomainBase>&, istringstream&);
66
67int print_info(const shared_ptr<DomainBase>&, istringstream&);
68
69int print_command();
70int execute_command(istringstream&);
71
72#endif
73
A Bead class is a top level container.
Definition: Bead.h:33
The DomainBase class is a template.
Definition: DomainBase.h:96
int suspend_object(const shared_ptr< DomainBase > &, istringstream &)
Definition: command.cpp:868
int protect_object(const shared_ptr< DomainBase > &, istringstream &)
Definition: command.cpp:888
int create_new_nodegroup(const shared_ptr< DomainBase > &, istringstream &)
Definition: command.cpp:906
int erase_object(const shared_ptr< Bead > &, istringstream &)
Definition: command.cpp:764
int enable_object(const shared_ptr< Bead > &, istringstream &)
Definition: command.cpp:727
int create_new_groupgroup(const shared_ptr< DomainBase > &, istringstream &)
Definition: command.cpp:1069
int save_object(const shared_ptr< DomainBase > &, istringstream &)
Definition: command.cpp:799
int create_new_generatebyplane(const shared_ptr< DomainBase > &, istringstream &)
Definition: command.cpp:1019
int disable_object(const shared_ptr< Bead > &, istringstream &)
Definition: command.cpp:691
int print_command()
Definition: command.cpp:1580
int print_info(const shared_ptr< DomainBase > &, istringstream &)
Definition: command.cpp:1428
int execute_command(istringstream &)
Definition: command.cpp:1660
int create_new_generate(const shared_ptr< DomainBase > &, istringstream &)
Definition: command.cpp:940
int process_command(const shared_ptr< Bead > &, istringstream &)
Definition: command.cpp:386
int create_new_generatebyrule(const shared_ptr< DomainBase > &, istringstream &)
Definition: command.cpp:990
int create_new_elementgroup(const shared_ptr< DomainBase > &, istringstream &)
Definition: command.cpp:923
int set_property(const shared_ptr< DomainBase > &, istringstream &)
Definition: command.cpp:1240
int run_example()
Definition: command.cpp:1526
int create_new_external_module(const shared_ptr< DomainBase > &, istringstream &)
Definition: command.cpp:1086
int create_new_node(const shared_ptr< DomainBase > &, istringstream &)
Definition: command.cpp:1223
int list_object(const shared_ptr< DomainBase > &, istringstream &)
Definition: command.cpp:839
int create_new_domain(const shared_ptr< Bead > &, istringstream &)
Definition: command.cpp:671
int process_file(const shared_ptr< Bead > &, const char *)
Definition: command.cpp:619
int create_new_generatebypoint(const shared_ptr< DomainBase > &, istringstream &)
Definition: command.cpp:1044
int create_new_initial(const shared_ptr< DomainBase > &, istringstream &)
Definition: command.cpp:1106