[Developers] The mClass Question

Bert Bril Bert.Bril at opendtect.org
Mon Jun 8 12:26:22 CEST 2009


Hi ygh1118,

[It's better to sign e-mails with a real name, but OK]


>> i am a student and i am intertested in the geophysical software 
>> programming. Recently, i got a copy of  source code about the 
>> opendtect. however, i do not understand the "mClass" ,which appears
>> so many times in the source code . so i wonder if you give me a
>> little hint about this term .

In such cases, you'd better try to find what you are looking for in the
header files. It's not a C++ keyword, so it can only be a macro defined
by us.

So, by searching for '#define mClass', I found the definition in
commondefs.h:

#define mClass          class dll_export

The macro 'dll_export' expands to something non-empty on MSVC (Visual
Studio) only. This is needed because in their eternal wisdom the M$
people thought it would be wise to mix compiler directives directly into
C++ code.


So for all practical purposes, you can think of mClass being 'class'.


Bert


-- 
-- Bert Bril / OpendTect developer at dGB
-- mailto:Bert.Bril at opendtect.org , http://opendtect.org





More information about the Developers mailing list