It is currently Thu Feb 09, 2012 1:18 am

All times are UTC



Welcome
Welcome to RHAPSODY4YOU

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, respond to polls, upload and download content, and access many other special features. Registration is fast, simple, and absolutely free, so please, register to join our community today.





 Page 1 of 1 [ 4 posts ] 
Author Message
 Post subject: how to Incude class header files in Pakcage header files ?
PostPosted: Fri Mar 20, 2009 2:39 pm 

Joined: Wed Mar 11, 2009 3:50 pm
Posts: 9
I have a package that has several classes.The Rhapspdy genrated code has package.cpp file including the class.h files.

In some external code I want to access the class functions and so want to just include the package.h file.But as the package.h file does not include the class header files,I cant do this.

Is there a way I get the class.h included in the package .h file instead of package.cpp ?


Offline
 Profile  
 
 Post subject:
PostPosted: Fri Mar 20, 2009 3:38 pm 
User avatar

Joined: Thu Sep 13, 2007 7:34 pm
Posts: 397
Location: London
"In some external code I want to access the class functions and so want to just include the package.h file"

That doesn't really make sense. If you want to use class1 then why wouldn't you just include class1.h?


Offline
 Profile  
 
 Post subject:
PostPosted: Fri Mar 20, 2009 3:51 pm 

Joined: Wed Mar 11, 2009 3:50 pm
Posts: 9
Including class header files would not be good solutio for me becuase that would required including each and every class that I'm using .

I dont want to include them individually .So there is no way I can get #include class.h in my package.h file ?


Offline
 Profile  
 
 Post subject:
PostPosted: Mon Mar 30, 2009 11:21 am 

Joined: Thu Aug 30, 2007 4:31 pm
Posts: 152
Location: Germany
mmh tried some properties .. but it looks like that there is no automatic way doing it ... so here what I can propose ...

(1) Use SpecInclude Property on Package level and add the class header like class_0.h and class_1.h or
(2) Draw usage dependencies from package to classes ...
-->see attached picture

I prefer (2) :-D


Attachments:
usagePackage.jpg
usagePackage.jpg [ 29.08 KiB | Viewed 216 times ]
Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:


suspicion-preferred