diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-04-10 19:59:37 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-04-10 19:59:37 +0000 |
commit | 3df4acfa816441fc28a95dee6d0191a927145d95 (patch) | |
tree | b5ae7ca44662cfd8e5c95f1826e4406021a606f5 /docs/tutorials/011/page04.html | |
parent | 60a5612b83d856fc0adc52b9f39fac9960ec9818 (diff) | |
download | ATCD-pre-subset.tar.gz |
This commit was manufactured by cvs2svn to create tag 'pre-subset'.pre-subset
Diffstat (limited to 'docs/tutorials/011/page04.html')
-rw-r--r-- | docs/tutorials/011/page04.html | 105 |
1 files changed, 0 insertions, 105 deletions
diff --git a/docs/tutorials/011/page04.html b/docs/tutorials/011/page04.html deleted file mode 100644 index 04fb9f8a006..00000000000 --- a/docs/tutorials/011/page04.html +++ /dev/null @@ -1,105 +0,0 @@ -<!-- $Id$ --> -<HTML> -<HEAD> - <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> - <META NAME="Author" CONTENT="James CE Johnson"> - <TITLE>ACE Tutorial 011</TITLE> -</HEAD> -<BODY TEXT="#000000" BGCOLOR="#FFFFFF" LINK="#000FFF" VLINK="#FF0F0F"> - -<CENTER><B><FONT SIZE=+2>ACE Tutorial 011</FONT></B></CENTER> - -<CENTER><B><FONT SIZE=+2>Passing non-trivial data through an ACE_Message_Queue</FONT></B></CENTER> - - -<P> -<HR WIDTH="100%"> - -Before we go further, let's look at this <A HREF="data.h">Data</A> object -that's causing all the fuss. - -<P> -<HR WIDTH="100%"> -<PRE> -<font color=red>// $Id$</font> - -<font color=blue>#ifndef</font> <font color=purple>DATA_H</font> -<font color=blue>#define</font> <font color=purple>DATA_H</font> - -class DataBase -{ -public: - DataBase (void) - { - ACE_DEBUG ((LM_DEBUG, - "<font color=green>(%P|%t) DataBase ctor 0x%x\n</font>", - (void *) this)); - } - virtual ~DataBase (void) - { - ACE_DEBUG ((LM_DEBUG, - "<font color=green>(%P|%t) DataBase dtor 0x%x\n</font>", - (void *) this)); - } - - void who_am_i (void) - { - ACE_DEBUG ((LM_DEBUG, - "<font color=green>(%P|%t) DataBase instance 0x%x\n</font>", - (void *) this)); - } - - virtual void what_am_i (void) - { - ACE_DEBUG ((LM_DEBUG, - "<font color=green>(%P|%t) I am a DataBase object\n</font>")); - } - -}; - -class Data : public DataBase -{ -public: - Data (void) - : message_ (-1) - { - ACE_DEBUG ((LM_DEBUG, - "<font color=green>(%P|%t) Data ctor 0x%x\n</font>", - (void *) this)); - } - - Data (int message) - : message_ (message) - { - ACE_DEBUG ((LM_DEBUG, - "<font color=green>(%P|%t) Data ctor 0x%x for message %d\n</font>", - (void *) this, message_)); - } - virtual ~Data (void) - { - ACE_DEBUG ((LM_DEBUG, - "<font color=green>(%P|%t) Data dtor 0x%x\n</font>", - (void *) this)); - } - - void what_am_i (void) - { - ACE_DEBUG ((LM_DEBUG, - "<font color=green>(%P|%t) I am a Data object for message %d\n</font>", - message_)); - } - -protected: - int message_; -}; - -<font color=blue>#endif</font> <font color=red>/* DATA_H */</font> -</PRE> -<HR WIDTH="100%"> -<P> -Ok, no mysterious magic on this one. Just a simple object and derivative -that report their existence. -<P> -<P><HR WIDTH="100%"> -<CENTER>[<A HREF="../online-tutorials.html">Tutorial Index</A>] [<A HREF="page05.html">Continue This Tutorial</A>]</CENTER> - |