Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix class and attribute types #40

Open
wants to merge 22 commits into
base: master
Choose a base branch
from

Conversation

tom-hg57
Copy link
Collaborator

@tom-hg57 tom-hg57 commented Oct 27, 2024

Most important changes:

  • Common:
    • Fix some attribute types
    • Fix handling of Decimal as float class
    • Add class property "is_a_primitive_class" and attribute property "is_primitive_float_attribute"
    • Improve _get_attribute_type in cimgen.py
    • Improve setting of long profile names
    • Refactor _merge_profiles and _merge_classes in cimgen.py
  • cpp:
    • Add generation of string classes (including Date, DateTime, MonthDay)
    • Fix create_class_assign functions to prevent duplicate entries in attributes with attribute_type list
    • Add static cpp sources and parser classes (copied from libcimpp)
    • Simplify and unify templates
  • modernpython:
    • Fix type and default of some attributes (for enums and attribute types Date, DateTime, MonthDay, Status, StreetAddress, StreetDetail, TownDetail)

…Type2, WindContPType3IEC for cpp and modernpython

Signed-off-by: Thomas Günther <[email protected]>
…primitive_float_attribute"

Signed-off-by: Thomas Günther <[email protected]>
…nd attribute types Date, DateTime, MonthDay, Status, StreetAddress, StreetDetail, TownDetail)

Signed-off-by: Thomas Günther <[email protected]>
… attributes with attribute_type list

Signed-off-by: Thomas Günther <[email protected]>
…class; unify BaseClass, Integer, Boolean with generated classes; fix debugstring() in UnknownType

Signed-off-by: Thomas Günther <[email protected]>
@tom-hg57 tom-hg57 force-pushed the fix-class-and-attribute-types branch from ad41d88 to ab563b3 Compare October 31, 2024 02:23
@m-mirz
Copy link
Contributor

m-mirz commented Nov 8, 2024

@tom-hg57 could you please add a description summarizing the most important changes? The same goes for #41

… in modernpython/lang_pack.py

Signed-off-by: Thomas Günther <[email protected]>
Copy link

sonarcloud bot commented Nov 12, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants