|
|
|
Re: How do you get information about the C model? [message #154317 is a reply to message #154069] |
Thu, 15 September 2005 12:33  |
Eclipse User |
|
|
|
Originally posted by: dschaefer.qnx.com
Chris Hull wrote:
> "Doug Schaefer" <dschaefer@qnx.com> wrote in message
> news:dg7d2h$6mi$2@news.eclipse.org...
>
>>Chris Hull wrote:
>>
>>>Given an IFile and a String of text, how can I use the CModel to see if
>
> the
>
>>>text is a valid function? Can I use the Outline view somehow?
>>>
>>>-Chris
>>>
>>>
>>
>>Are you talking about a string of text from the IFile, or did you mean
>>(offset,length) into the file?
>>
>>Doug
>
>
> I mean a string of text from the IFile. Literally, you are given an IFile,
> and the text "main". How do you know that "main" is a function in IFile?
>
>
>
I already replied privately, but for everyone's eyes, CModelManager is
the place to start to get information from the C Model. It has a create
function that takes an IFile and IProject containing the file (I think)
and give you the root ITranslationUnit.
Doug
|
|
|
Powered by
FUDForum. Page generated in 0.03943 seconds