Hello,
I'm bit puzzled by the fact, that I see no clean way to model a simple function (not bound to a class, but residing in a C or Python module/source file).
My task includes a number of tasks, among others: a clean modeling of existing libraries, both in C and Python.
Much of the code there is implemented as simple functions. Now I want to put those functions in a package (corresponding to C source files, or modules), I see no way to do that in an unambiguous manner.
I've also tried to see how EA handles imported Python and C-source files. Fact is, no functionas are imported. Typedefs, enummerations and namespaces (from C++) are imported just fine.
So I'm wondering what would be the clean way to do this.
Ma best guess by now is to inreoduce some streotypes: C_source_file, C_header_file, Python_module etc., then attach Operations and Attributes to instances of classes with those stereotypes.
Any hints?
Thanks in advance,
Propad