Skip to main content

Rocky Solver SDK 2024 R2

rocky_plugin_data

Last update: 17.07.2025
1#pragma once
2
3// Includes =======================================================================================
4#include <memory>
5#include <string>
6
7// Forward declarations ===========================================================================
8namespace rocky20 { namespace addins {
9 class RockyAddinData;
10 class AddinData;
11} }
12
13// =================================================================================================
14// IRockyPluginDataEntry
15// =================================================================================================
16
29{
30public:
31 std::shared_ptr<rocky20::addins::AddinData> pImpl;
32
40 bool has(const char *_name) const;
41
49 bool get_bool(const char *_name) const;
50
58 int get_int(const char *_name) const;
59
67 double get_double(const char *_name) const;
68
75 std::string get_string(const char *_name) const;
76
84 int get_list_size(const char *_name) const;
85
96 IRockyPluginDataEntry get_list_item(const char *_name, int item_index) const;
97};
98
99// =================================================================================================
100// IRockyPluginData
101// =================================================================================================
102
112{
113public:
114 std::unique_ptr<rocky20::addins::RockyAddinData> pImpl;
115
124
130
136
147
152 bool has_geometry_data() const;
153
158 int get_number_geometries() const;
159
171
176 bool has_particle_group_data() const;
177
182 int get_number_particle_groups() const;
183
194
199 bool has_material_data() const;
200
204 int get_number_materials() const;
205
216
219 [[deprecated("Use get_material_data(int) instead.")]]
220 IRockyPluginDataEntry get_material_properties_data(int index) const;
221
222 [[deprecated("Use has_material_data() instead.")]]
223 bool has_material_properties_data() const;
224
225 [[deprecated("Use get_material_interaction_data(int) instead.")]]
226 IRockyPluginDataEntry get_material_interaction(int index) const;
227
229};
Definition rocky_plugin_data.h:29
bool has(const char *_name) const
Definition rocky_plugin_data.cpp:9
std::string get_string(const char *_name) const
Definition rocky_plugin_data.cpp:29
int get_int(const char *_name) const
Definition rocky_plugin_data.cpp:19
IRockyPluginDataEntry get_list_item(const char *_name, int item_index) const
Definition rocky_plugin_data.cpp:39
int get_list_size(const char *_name) const
Definition rocky_plugin_data.cpp:34
double get_double(const char *_name) const
Definition rocky_plugin_data.cpp:24
bool get_bool(const char *_name) const
Definition rocky_plugin_data.cpp:14
Definition rocky_plugin_data.h:112
IRockyPluginDataEntry get_particle_group_data(int index) const
Definition rocky_plugin_data.cpp:98
int get_number_geometries() const
Definition rocky_plugin_data.cpp:76
bool has_geometry_data() const
Definition rocky_plugin_data.cpp:71
IRockyPluginDataEntry get_material_data(int index) const
Definition rocky_plugin_data.cpp:115
IRockyPluginDataEntry get_material_interaction_data(int index) const
Definition rocky_plugin_data.cpp:64
int get_number_particle_groups() const
Definition rocky_plugin_data.cpp:93
int get_number_material_interactions() const
Definition rocky_plugin_data.cpp:59
IRockyPluginDataEntry get_model() const
Definition rocky_plugin_data.cpp:47
int get_number_materials() const
Definition rocky_plugin_data.cpp:110
IRockyPluginDataEntry get_geometry_data(int index) const
Definition rocky_plugin_data.cpp:81
bool has_material_interaction_data() const
Definition rocky_plugin_data.cpp:54
bool has_particle_group_data() const
Definition rocky_plugin_data.cpp:88
bool has_material_data() const
Definition rocky_plugin_data.cpp:105

Connect with Ansys