Public Member Functions | Private Attributes | Friends

api_Base Class Reference

#include <api_base.h>

List of all members.

Public Member Functions

 api_Base (IN const char *a_serverAddress, IN const char *a_hostname, IN const char *a_logDir=NULL)
virtual ~api_Base (void)
string GetHsmApiVersion (void) const
string GetHsmVersion (void) const
void SetLastError (UInt32_t a_errorCode)

Private Attributes

string m_hsmVersion
i_ManagementInterface_var m_mif
i_UIMessageServer_var m_uims

Friends

class api_Partition

Detailed Description

Definition at line 57 of file api_base.h.


Constructor & Destructor Documentation

api_Base::api_Base ( IN const char *  a_serverAddress,
IN const char *  a_hostname,
IN const char *  a_logDir = NULL 
)
api_Base::~api_Base ( void   )  [virtual]

Definition at line 138 of file api_base.cpp.

References dbg_LOW, Destroy(), ivd_BaseException::GetError(), ivd_BaseException::GetFriendly(), ivd_EC_STD_EXCEPTION, ivd_EC_UNKNOWN_EXCEPTION, log_DBG_m, log_FUNC_m, log_WriteErrorEvent, and SetLastError().

{
    log_FUNC_m(~api_Base);
    try {
        ipc_Corba::Destroy();
        log_DBG_m(dbg_LOW, "Server disconnected.");
    }
    catch (ivd_Exception &e) {
        log_WriteErrorEvent( e.GetFriendly() );
        SetLastError(e.GetError());
    }
    catch (std::exception &se) {
        log_WriteErrorEvent( "std::exception: " << se.what());
        SetLastError(ivd_EC_STD_EXCEPTION);
    }
    catch (...) {
        log_WriteErrorEvent( "Unknown exception!" );
        SetLastError(ivd_EC_UNKNOWN_EXCEPTION);
    }

    return;
}

Here is the call graph for this function:


Member Function Documentation

string api_Base::GetHsmApiVersion ( void   )  const

Definition at line 170 of file api_base.cpp.

References HSMAPI_VERSION, and log_FUNC_m.

string api_Base::GetHsmVersion ( void   )  const

Definition at line 176 of file api_base.cpp.

References log_FUNC_m, and m_hsmVersion.

void api_Base::SetLastError ( UInt32_t  a_errorCode  ) 

Definition at line 162 of file api_base.cpp.

References g_lastError, and log_FUNC_m.

Referenced by api_Partition::LocalPath2HSM(), and ~api_Base().

Here is the caller graph for this function:


Friends And Related Function Documentation

friend class api_Partition [friend]

Definition at line 78 of file api_base.h.


Member Data Documentation

string api_Base::m_hsmVersion [private]

Definition at line 74 of file api_base.h.

Referenced by GetHsmVersion().

i_ManagementInterface_var api_Base::m_mif [private]
i_UIMessageServer_var api_Base::m_uims [private]

Definition at line 77 of file api_base.h.


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