Debian Codegraph @

gui/include/sketch/gui_sketch_defaults.h

raw symbols SCIP
1 /* File: gui_sketch_defaults.h; Copyright and License: see below */
2
3 #ifndef GUI_SKETCH_DEFAULTS_H
4 #define GUI_SKETCH_DEFAULTS_H
5
6 /* public file for the doxygen documentation: */
7 /*!
8 * \file
9 * \brief Defines default types for for uml/sysml models - depending on their usage context
10 */
11
12 #include "set/data_visible_set.h"
13 #include "entity/data_classifier_type.h"
14 #include "entity/data_feature_type.h"
15 #include "entity/data_relationship_type.h"
16 #include "entity/data_diagram_type.h"
17 #include "entity/data_row.h"
18 #include <stdbool.h>
19
20 /*!
21 * \brief attributes of gui_sketch_defaults_t
22 */
23 struct gui_sketch_defaults_struct {
24 int dummy; /*!< defaults have no attributes */
25 };
26
27 typedef struct gui_sketch_defaults_struct gui_sketch_defaults_t;
28
29 /*!
30 * \brief initializes the gui_sketch_defaults_t struct
31 *
32 * \param this_ pointer to own object attributes
33 */
34 static inline void gui_sketch_defaults_init ( gui_sketch_defaults_t *this_ );
35
36 /*!
37 * \brief destroys the gui_sketch_defaults_t struct
38 *
39 * \param this_ pointer to own object attributes
40 */
41 static inline void gui_sketch_defaults_destroy ( gui_sketch_defaults_t *this_ );
42
43 /*!
44 * \brief gets the default classifier type of the given diagram type
45 *
46 * This method implements a guideline.
47 *
48 * \param this_ pointer to own object attributes
49 * \param diagram_type the diagram type
50 * \return default classifier type in the given diagram_type.
51 * DATA_CLASSIFIER_TYPE_COMMENT if diagram_type is invalid.
52 */
53 static inline data_classifier_type_t gui_sketch_defaults_get_classifier_type ( const gui_sketch_defaults_t *this_,
54 data_diagram_type_t diagram_type
55 );
56
57 /*!
58 * \brief gets the default relationship type of the given source(from) classifier type
59 *
60 * This method implements a guideline.
61 *
62 * \param this_ pointer to own object attributes
63 * \param from_classifier_type the classifier type where the relation starts from
64 * \param from_feature_type the feature type where the relation starts from;
65 * DATA_FEATURE_TYPE_VOID if relation starts directly at the classifier
66 * \return default relationship type of the given from(source) classifier type.
67 * DATA_RELATIONSHIP_TYPE_UML_DEPENDENCY if from_classifier_type is invalid.
68 */
69 static inline data_relationship_type_t gui_sketch_defaults_get_relationship_type ( const gui_sketch_defaults_t *this_,
70 data_classifier_type_t from_classifier_type,
71 data_feature_type_t from_feature_type
72 );
73
74 /*!
75 * \brief gets the default feature type of the given parent classifier type
76 *
77 * This method implements a guideline.
78 *
79 * \param this_ pointer to own object attributes
80 * \param parent_classifier_type the classifier type for which to create a feature
81 * \return default feature type of the given parent classifier type.
82 * DATA_FEATURE_TYPE_PROPERTY if parent_classifier_type is invalid.
83 */
84 static inline data_feature_type_t gui_sketch_defaults_get_feature_type ( const gui_sketch_defaults_t *this_,
85 data_classifier_type_t parent_classifier_type
86 );
87
88 #include "gui_sketch_defaults.inl"
89
90 #endif /* GUI_SKETCH_DEFAULTS_H */
91
92
93 /*
94 Copyright 2017-2026 Andreas Warnke
95
96 Licensed under the Apache License, Version 2.0 (the "License");
97 you may not use this file except in compliance with the License.
98 You may obtain a copy of the License at
99
100 http://www.apache.org/licenses/LICENSE-2.0
101
102 Unless required by applicable law or agreed to in writing, software
103 distributed under the License is distributed on an "AS IS" BASIS,
104 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
105 See the License for the specific language governing permissions and
106 limitations under the License.
107 */