Public Member Functions | Private Attributes

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.

Public Member Functions

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

Private Attributes

 log_CLASSID_m

Detailed Description

Definition at line 8 of file i_IvdNet_impl.h.


Constructor & Destructor Documentation

i_IvdNet_i::i_IvdNet_i (  )  [inline]

Definition at line 11 of file i_IvdNet_impl.h.

                 {
        // empty
    };

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

Definition at line 14 of file i_IvdNet_impl.h.

References ipc_Corba::Shutdown().

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().

                                               {
    log_FUNC_m(GetEcho);

    string result;
    if (strstr(a_message, "IOR:") != NULL) {
        cout << "OK\nClient's reference: " << a_message << endl;
        result = CORBA::String_var(ipc_Corba::Singleton().m_orb->object_to_string(this->_this()));
    }
    else if (strcmp(a_message, "Bye.") == 0) {
        result = "Connection verified.";
        cout << result << endl;
        //cout << endl << "Waiting for client... ";
    }
    else {
        cout << "Received: \"" << a_message << "\"" << endl;
        if (strcmp(a_message, "How are you?") == 0) {
            result = "Fine, thanks, and how are you?";
            cout << "Sent: \"" << result << "\"" << endl;
        }
        else if (strcmp(a_message, "I'm fine, too. See you.") == 0) {
            result = "Bye.";
            cout << "Sent: \"" << result << "\"" << endl;
        }
    }
    return CORBA::string_dup(result.c_str());
}

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: