473,387 Members | 1,760 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

I<something>

I've seen this alot. I imagine the "I", stand for interface. Usually I see
two files:

SomeClass.h
ISomeClass.h

Can someone explain this practice and what the differance between the two
files should be?

Thanks.
Apr 12 '07 #1
4 1297
Christopher Pisz wrote:
I've seen this alot. I imagine the "I", stand for interface. Usually
I see two files:

SomeClass.h
ISomeClass.h

Can someone explain this practice and what the differance between the
two files should be?
It can mean *I*mplementation. Or it can mean *I*nterface and the
header without it actually contains the implementation and you're not
supposed to use it unless you're actually developing it. It can also
mean *I*nternals. IIRC, in COM it's very common to prepend the name
with 'I' if it's an interface (usually abstract).

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Apr 12 '07 #2
Sometimes you might want to have an internal and external header.
External header is for the external interface
and the internal is for things used inside the package. The internal
header is utilized only by the files within the package, while
anything you want visible to the user of the package should be in the
external interface.

Apr 12 '07 #3
Christopher Pisz wrote:
I've seen this alot. I imagine the "I", stand for interface. Usually I see
two files:

SomeClass.h
ISomeClass.h

Can someone explain this practice and what the differance between the two
files should be?

Thanks.

Search the web for PIMPL or Pointer to Implementation.

--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.comeaucomputing.com/learn/faq/
Other sites:
http://www.josuttis.com -- C++ STL Library book
http://www.sgi.com/tech/stl -- Standard Template Library
Apr 13 '07 #4
"Thomas Matthews" <Th**********************@matthews.cox.netwrote in
message news:46**************@matthews.cox.net...
Christopher Pisz wrote:
>I've seen this alot. I imagine the "I", stand for interface. Usually I
see two files:

SomeClass.h
ISomeClass.h

Can someone explain this practice and what the differance between the two
files should be?

Thanks.

Search the web for PIMPL or Pointer to Implementation.

--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.comeaucomputing.com/learn/faq/
Other sites:
http://www.josuttis.com -- C++ STL Library book
http://www.sgi.com/tech/stl -- Standard Template Library

Thank you, that is exactly what I was looking for to solve my "how to give a
user my interface without showing him my private details" problem.
Apr 13 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Phil Latio | last post by:
I have a number of basic PHP books but they don't cover passing variables into an HTML template which is called into a PHP script. (I am trying to keep the mark-up and the execution code seperate.)...
44
by: seberino | last post by:
Tuples are defined with regards to parentheses ()'s as everyone knows. This causes confusion for 1 item tuples since (5) can be interpreted as a tuple OR as the number 5 in a mathematical...
1
by: GHUM | last post by:
I have found a "make a icon in traybar" skript, and it loads its Icon from a file hinst = win32gui.GetModuleHandle(None) iconPathName= "c:/myapp/myapp.ico" icon_flags =...
0
by: vinod | last post by:
Dear Experts, I'm vinod, a happiest member of this forum, i've another doubt please explain me what is information_schema.<table> i'm using this to get some information from database. but i didnt...
5
by: Osamede Zhang | last post by:
I just can't understand what appSettings means, how it work thanks for your read osamede
0
by: jfarr | last post by:
Hi all, I must be missing some syntax here, but for the life of me I cannot figure out what it might be. Here is my query; System.Management.ObjectQuery oQuery = new...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.