i_IvdNet_i Class Reference

#include <i_IvdNet_impl.h>

Inheritance diagram for i_IvdNet_i:

Inheritance graph
[legend]
Collaboration diagram for i_IvdNet_i:

Collaboration graph
[legend]

List of all members.


Detailed Description

Definition at line 8 of file i_IvdNet_impl.h.


Public Member Functions

 i_IvdNet_i ()
virtual ~i_IvdNet_i (void)
virtual char * GetEcho (const char *a_message)

Private Attributes

 log_CLASSID_m

Constructor & Destructor Documentation

i_IvdNet_i::i_IvdNet_i (  )  [inline]

Definition at line 11 of file i_IvdNet_impl.h.

00011                  {
00012         // empty
00013     };

virtual i_IvdNet_i::~i_IvdNet_i ( void   )  [inline, virtual]

Definition at line 14 of file i_IvdNet_impl.h.

References ipc_Corba::Shutdown().

00014                               {
00015         ipc_Corba::Shutdown();
00016     };

Here is the call graph for this function:


Member Function Documentation

char * i_IvdNet_i::GetEcho ( const char *  a_message  )  [virtual]

Definition at line 19 of file i_IvdNet_impl.cpp.

References log_FUNC_m, NULL, and ipc_Corba::Singleton().

00019                                                {
00020     log_FUNC_m(GetEcho);
00021 
00022     string result;
00023     if (strstr(a_message, "IOR:") != NULL) {
00024         cout << "OK\nClient's reference: " << a_message << endl;
00025         result = CORBA::String_var(ipc_Corba::Singleton().m_orb->object_to_string(this->_this()));
00026     }
00027     else if (strcmp(a_message, "Bye.") == 0) {
00028         result = "Connection verified.";
00029         cout << result << endl;
00030         //cout << endl << "Waiting for client... ";
00031     }
00032     else {
00033         cout << "Received: \"" << a_message << "\"" << endl;
00034         if (strcmp(a_message, "How are you?") == 0) {
00035             result = "Fine, thanks, and how are you?";
00036             cout << "Sent: \"" << result << "\"" << endl;
00037         }
00038         else if (strcmp(a_message, "I'm fine, too. See you.") == 0) {
00039             result = "Bye.";
00040             cout << "Sent: \"" << result << "\"" << endl;
00041         }
00042     }
00043     return CORBA::string_dup(result.c_str());
00044 }

Here is the call graph for this function:


Member Data Documentation

Reimplemented from i_Component_i.

Definition at line 20 of file i_IvdNet_impl.h.


The documentation for this class was generated from the following files:

Generated on Mon Feb 27 19:33:20 2012 for OPENARCHIVE by  doxygen 1.5.6