Author Topic: question about specific function in cbproject.h  (Read 3091 times)

Offline frithjofh

  • Regular
  • ***
  • Posts: 376
question about specific function in cbproject.h
« on: March 20, 2015, 07:40:03 pm »
Hi everyone,

I did myself some research, but to be really sure, i would like a developers comment on this, i someone would be so kind.

The following function is from cbprojec.h :

Code
          /** Provides an easy way to iterate all the files belonging in this target.
          * @return A list of files belonging in this target.
          */
        virtual FilesList& GetFilesList(){ return m_Files; }

My question is, if this file returns all files of a project, all corresponding -Includes included? I guess it does, but maybe I am overlooking something... just to be sure...

Many thanks for any feedback

regards

frithjofh
architect with some spare time  -  c::b compiled from last svn  -   openSuSE leap x86_64  -  AMD FX-4100

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: question about specific function in cbproject.h
« Reply #1 on: March 20, 2015, 08:29:50 pm »
This function returns all file objects that you see in the project tree in the management -> projects tab.
It can return sources files, headers, some other files.

I'm not sure I understand the question about the includes, but probably this function doesn't return the include paths.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline frithjofh

  • Regular
  • ***
  • Posts: 376
Re: question about specific function in cbproject.h
« Reply #2 on: March 20, 2015, 08:59:58 pm »
i probably didn’t express myself very well...

... but the answer suits me perfectly. It was exactly what i needed to know, many thanks.

For the confusing part of my original question: your answer pointed out an error I made reasoning about the function in the first place, so my question really became pointless... :)

thx
architect with some spare time  -  c::b compiled from last svn  -   openSuSE leap x86_64  -  AMD FX-4100