473,480 Members | 1,799 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

What does "TAG" in [class TAG MyClass {...};] mean?

Folks,

Any pointers on what is the meaning of the tags (SOME_TAG, and
RTI_EXPORT) preceeding the class names in the following examples?

class SOME_TAG MyClass
{
// ...
};

class RTI_EXPORT exception
{
// ...
};

I have seen this kind of thing a few times. Is this a class declaration
allowed by the C++ standard? What is it used for?

Thank you!

-Bossanovaplayer

Jul 23 '05 #1
2 1740
ra******@yahoo.com wrote:
Any pointers on what is the meaning of the tags (SOME_TAG, and
RTI_EXPORT) preceeding the class names in the following examples?

class SOME_TAG MyClass
{
// ...
};

class RTI_EXPORT exception
{
// ...
};

I have seen this kind of thing a few times. Is this a class
declaration allowed by the C++ standard? What is it used for?


If I define SOME_TAG like this:

#define SOME_TAG

then the code when compiled has no tag whatsoever, it is eliminated
by the preprocessor, and the code is perfectly fine. Now, if the
macro is defined to expand into something else, then you need to ask
about it in a newsgroup for your compiler, it is most likely very
compiler- or/and platform-specific.

V
Jul 23 '05 #2
Victor,

Thanks for your input. I've tried it and it does compile. From this
point on it's like you said, different applications will expand it into
something that makes sense for them. As for myself, it's good enough
that now I know how it would compile.

Regards,

-Ramiro

Jul 23 '05 #3

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

Similar topics

4
1985
by: Mark Erikson | last post by:
I'm currently writing an HTML editor for the PocketPC, and one of my Tag class's properties is DefaultAttributes. The idea behind this is that some tags are almost always used with certain...
24
5794
by: Mohammd M. Hussain | last post by:
Hi, I am writing an XHTML 1.0 Strict Compatible web page. However, the validator complained about the <br> tag. I wonder whether there is another alternative for this. Thanks,
3
5130
by: Kiki Novak | last post by:
Hi, I'm an Austrian writer living in Montpezat (South France), and I'm currently busy converting some of my writings from LaTeX to HTML to publish them on the Internet. The novel I'm working...
8
10621
by: Lian | last post by:
Hi all, It is a newbie's question about html tag "img". The attributes "title" and "alt" for "img" seems having the same function. So what is the main difference between them? Can i use them at...
1
3291
by: ScottF | last post by:
There was a problem with ASP.Net 1.1 creating/generating bad javascript on html pages that I ran into and on the KB page that I had found at the time it said that the problem was fixed in the .Net...
8
8737
by: Dan | last post by:
Is there any way to assign a tag value to each item in a listbox?
5
41076
by: cfli1688 | last post by:
I have the following xsl: =============================== <xsl:for-each select="ROWSET/ROW"> <xsl:choose> <!-- previous node is blank, this is the first node --> <xsl:when...
0
3082
by: =?Utf-8?B?Qm9i?= | last post by:
I have a GridView control in page called which is inheriting from a MasterPage. The normal code to export to GridView does not work and gives me an error - "Control of type GridView must be placed...
1
3271
by: sandeep kumar shah | last post by:
Hi, We have used a file uploading HTML tag in an HTML page. We need to customize the text displayed on the Button (which is by default “Browse…” for internet explorer). Below is the...
0
7037
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,...
0
6904
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7076
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6732
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5324
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4472
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2990
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1294
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
558
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.