Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. The Lounge
  4. Should I use namespace to name data types in a UML class diagram?
Forum Updated to NodeBB v4.3 + New Features

Should I use namespace to name data types in a UML class diagram?

Scheduled Pinned Locked Moved Unsolved The Lounge
5 Posts 2 Posters 1.9k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    isaacEnrique
    wrote on 13 May 2017, 04:12 last edited by
    #1

    Greetings.

    I am creating several UML class diagrams. In some of them, there are member functions (and member variables) whose parameters are of data types defined in a third party library,
    namely cv::Mat, cv::Point, among others, of the OpenCV library.

    My specific question is:

    should I use the namespace to name these data types? For example, What is better to put in the diagram, cv::Mat or just Mat?

    Thanks in advance for any help and/or suggestion.

    Isaac Pérez
    Programming is understanding.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 13 May 2017, 22:07 last edited by
      #2

      Hi,

      That's rather highly unrelated to Qt but anyway, since you are describing your application, it will likely be a good idea to be explicit about the types you are using. Mat alone doesn't make it clear where it comes from.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • I Offline
        I Offline
        isaacEnrique
        wrote on 14 May 2017, 07:29 last edited by
        #3

        I apologize. Because the subtitle of this part of the forum (Home / General talk / The Lounge), I thought it was allowed to ask questions not directly related to Qt.

        However, I have to say that my application also uses Qt classes (in fact, the whole GUI is Qt). Although with the Qt classes I did not have the doubt that I published (obviously).

        Isaac Pérez
        Programming is understanding.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 14 May 2017, 21:36 last edited by
          #4

          I would have rather opted for Brainstorming ;)

          Do you mean you are using namespaces for your Qt classes ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • I Offline
            I Offline
            isaacEnrique
            wrote on 15 May 2017, 07:13 last edited by
            #5

            I'm not using namespaces for Qt classes. What I meant was that Qt classes are clearer/easier to identify (since their name always starts with the letter Q).

            By other hand, thanks for the suggestion. I will opt for the Brainstorm section next time.

            Isaac Pérez
            Programming is understanding.

            1 Reply Last reply
            0

            1/5

            13 May 2017, 04:12

            • Login

            • Login or register to search.
            1 out of 5
            • First post
              1/5
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved