Author Topic: New UserVarManager implementation  (Read 13427 times)

Offline AndrewCot

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 679
Re: New UserVarManager implementation
« Reply #15 on: September 16, 2022, 04:52:35 am »
An issue I just came across and it's in the existing implementation a well is that there are no errors in the log if a variable is not found due to using the wrong variable set. May be an idea to add logging of errors/warnings when variables are not found.

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3352
Re: New UserVarManager implementation
« Reply #16 on: September 19, 2022, 11:33:09 pm »
My idea was to return a error log in the ReplaceMacros function. So it could be outputed to the compiler log during compiling and in the codeblocks log when other. I mean if i compile something and then it does not work, it would be nice to see in the compiler log...

Offline AndrewCot

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 679
Re: New UserVarManager implementation
« Reply #17 on: September 20, 2022, 12:19:43 am »
Sounds good.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6035
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: New UserVarManager implementation
« Reply #18 on: September 20, 2022, 02:28:25 am »
My idea was to return a error log in the ReplaceMacros function. So it could be outputed to the compiler log during compiling and in the codeblocks log when other. I mean if i compile something and then it does not work, it would be nice to see in the compiler log...

I totally agree with this idea.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline AndrewCot

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 679
Re: New UserVarManager implementation
« Reply #19 on: September 24, 2022, 10:31:13 am »
I could not find the implementation of the following:
    wxString GetMemberValue(const wxString & setName, const wxString & varName, const wxString & memberName) const;