Uploaded image for project: 'Apache NiFi MiNiFi C++'
  1. Apache NiFi MiNiFi C++
  2. MINIFICPP-1728

Clean up getProperty/setProperty in ProcessContext etc

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None

    Description

      We have a lot of parallel versions of getProperty and setProperty, some of which take a (reference to) a Property object, some take a string (the name of the property). If possible, it would be good to get rid of all the string versions.  It should be possible to at least get rid of most of them.

      Also, the various setProperty functions take their value parameter by value, but don't move from them. The compiler probably eliminates most of these copies, but we shouldn't rely on that. The parameter type could be changed to either const std::string& or string_view.

      Attachments

        Activity

          People

            Unassigned Unassigned
            fgerlits Ferenc Gerlits
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: