
Simple question. What exactly are ipp files, and how are they used? jmccay

On 5/13/06, Joe McCay
Simple question. What exactly are ipp files, and how are they used?
When I've seen ipp files, the idea has been a separation of interface and implementation, like with hpp/cpp, but for templates. Because the template definitions need to be in the headers, they can't be compiled separately and are instead put in ipp files to be included in the corresponding header. The ipp extension is used for consistency with hpp and cpp, but different to indicate that they should neither be included by users or compiled into object files. ~ SWMc

Joe McCay wrote:
Simple question. What exactly are ipp files, and how are they used?
For me, it's "stuff that's going to imported with #include" but which isn't a header file. For example if I have a unit test with a large amount of data embedded in the file, I put the data in an .ipp file so that the test program contains just readable code, and the (mostly unreadable) data is separated out. But there are plenty of other uses. John.

I believe that custom has evolved to used them for templates definitions.
That is the way they are used in the serialization library.
Robert Ramey
"Joe McCay"
participants (4)
-
Joe McCay
-
John Maddock
-
me22
-
Robert Ramey