/mnt/USB_DISK/BUILD/prj_sf/otlib/trunk/include/ot_lib.h File Reference

#include <iostream>
#include <sstream>
#include <string>
#include <list>
#include <map>
#include <vector>
#include <cc++/buffer.h>
#include <cc++/socket.h>
#include <cstdlib>
#include "ot_utility.h"
#include "core/ot_xml.h"
#include "core/ot_obj.h"
#include "core/ot_objectFactory.h"
#include "core/ot_exception.h"
#include "core/ot_null.h"
#include "core/ot_bool.h"
#include "core/ot_num.h"
#include "core/ot_int.h"
#include "core/ot_uint.h"
#include "core/ot_float.h"
#include "core/ot_string.h"
#include "core/ot_containerElement.h"
#include "core/ot_list.h"
#include "core/ot_vector.h"
#include "core/ot_map.h"
#include "core/ot_time.h"
#include "core/ot_raw_data.h"
#include "core/ot_ior.h"
#include "core/ot_path.h"
#include "messages/ot_message.h"
#include "messages/ot_messageAction.h"
#include "messages/ot_messageDump.h"
#include "messages/ot_messageError.h"
#include "messages/ot_messageGet.h"
#include "messages/ot_messagePing.h"
#include "messages/ot_messageSet.h"
#include "codec/ot_codec.h"
#include "codec/ot_codecStd.h"
#include "codec/ot_codecGZip.h"
#include "codec/ot_codecRepository.h"
#include "interface/ot_interfaceElement.h"
#include "interface/ot_interfaceRepository.h"
#include "interface/ot_interface.h"
#include "interface/ot_manager.h"
#include "interface/ot_functionManager.h"
#include "net/ot_socketUtility.h"
#include "net/server/ot_serverTCPSocket.h"
#include "net/server/ot_socketServer.h"
#include "net/client/ot_socketManager.h"

Go to the source code of this file.

Namespaces

namespace  ot_lib

Classes

class  ot_lib::binaryWriter
class  ot_lib::exitHandler
class  ot_lib::mutexLockFunction
class  ot_lib::xmlTag< X >
 XML tag class. More...
class  ot_lib::ot_obj
 OT_LIB base object class. More...
class  ot_lib::ot_objectFactoryCallback
class  ot_lib::ot_objectFactoryCallbackRegister
class  ot_lib::ot_objectFactory
class  ot_lib::ot_exception
class  ot_lib::ot_null
 OT_LIB Null type class. More...
class  ot_lib::ot_bool
 OT_LIB Boolean class. More...
class  ot_lib::ot_num< X >
 OT_LIB Numeric type base class. More...
class  ot_lib::ot_int
 OT_LIB Integer class. More...
class  ot_lib::ot_uint
 OT_LIB Integer class. More...
class  ot_lib::ot_float
 OT_LIB Float class. More...
class  ot_lib::ot_string
 OT_LIB String class. More...
class  ot_lib::ot_container_element
class  ot_lib::ot_list
 OT_LIB Vector class. More...
class  ot_lib::ot_vector
 OT_LIB Vector class. More...
class  ot_lib::ot_map
 OT_LIB Map class. More...
class  ot_lib::ot_time
 OT_LIB time type class. More...
class  ot_lib::ot_rawData
 OT_LIB Raw data class. More...
class  ot_lib::ot_ior
 OT_LIB IOR class. More...
class  ot_lib::ot_path
class  ot_lib::ot_messageBase
class  ot_lib::ot_messageRequest
class  ot_lib::ot_messageResponse
class  ot_lib::ot_messageACTION
class  ot_lib::ot_messageACTIONRESP
class  ot_lib::ot_messageDUMP
class  ot_lib::ot_messageDUMPRESP
class  ot_lib::ot_messageERROR
class  ot_lib::ot_messageGET
class  ot_lib::ot_messageGETRESP
class  ot_lib::ot_messagePING
class  ot_lib::ot_messagePINGRESP
class  ot_lib::ot_messageSET
class  ot_lib::ot_messageSETRESP
class  ot_lib::ot_messageCodec
 OT_LIB Message Handler. More...
class  ot_lib::ot_messageCodecStd
 OT_LIB STD codec. More...
class  ot_lib::ot_messageCodecGZip
 OT_LIB GZIP codec. More...
class  ot_lib::ot_codecRepository
 OT_LIB codec repository. More...
class  ot_lib::ot_functionImplementation
 OT_LIB callback function. More...
class  ot_lib::ot_interfaceElement
class  ot_lib::ot_interfaceFunction
class  ot_lib::ot_interfaceAttribute
class  ot_lib::interfaceRepository
class  ot_lib::ot_interface
 OT_LIB interface class. More...
class  ot_lib::ot_manager
class  ot_lib::ot_functionManager
 OT_LIB function manager. More...
class  ot_lib::utilityTCP
class  ot_lib::clientTCPSession
class  ot_lib::serverTCPSocket
class  ot_lib::acceptTCPSocket
class  ot_lib::ot_socketServer
class  ot_lib::ot_socketManager

Defines

#define OT_LIB_VERSION   4.1
#define OT_ASSERT(X)   if(!X) {cerr << "**** OT_LIB : ASSERT failed ! file:" << __FILE__ << " line:" << __LINE__ << " [" << #X << "]" << endl;exit(1);}
#define OT_DEBUG_CRITICAL(X)   cerr << "**** OT_LIB DEBUG (CRITICAL) : " << X << " file:" << __FILE__ << " line:" << __LINE__ << endl
#define OT_DEBUG_WARNING(X)   cerr << "**** OT_LIB DEBUG (WARNING) : " << X << " file:" << __FILE__ << " line:" << __LINE__ << endl
#define OT_DEBUG_INFO(X)
#define OT_DEBUG_CRITICAL_FL(X, F, L)   cerr << "**** OT_LIB DEBUG (CRITICAL) : " << X << " file:" << F << " line:" << L << endl
#define OT_ASSERT_WE(X, EC)

Enumerations

enum  ot_lib::OT_OBJECT_TYPE {
  ot_lib::OT_NULL, ot_lib::OT_INT, ot_lib::OT_UINT, ot_lib::OT_FLOAT,
  ot_lib::OT_STRING, ot_lib::OT_VECTOR, ot_lib::OT_MAP, ot_lib::OT_LIST,
  ot_lib::OT_TIME, ot_lib::OT_RAWDATA, ot_lib::OT_IOR, ot_lib::OT_BOOL,
  ot_lib::OT_PATH, ot_lib::OT_EX_INTERFACE_NOT_EX_FOUND, ot_lib::OT_EX_CODEC_DECODING_ERROR, ot_lib::OT_EX_ACCESS_DENY,
  ot_lib::OT_EX_FUNCTION_NOT_EX_FOUND, ot_lib::OT_EX_OUT_OF_MEMORY, ot_lib::OT_EX_ELEMENT_DELETION_ERROR, ot_lib::OT_EX_INVALID_INTERFACE_NAME,
  ot_lib::OT_EX_INVALID_ATTRIBUTE_NAME, ot_lib::OT_EX_INVALID_FUNCTION_NAME, ot_lib::OT_EX_INTERFACE_ALREADY_PRESENT, ot_lib::OT_EX_ELEMENT_ALREADY_PRESENT,
  ot_lib::OT_EX_INTERFACE_ELEMENT_NOT_FOUND, ot_lib::OT_EX_INTERFACE_FULL, ot_lib::OT_EX_INTERNAL_ERROR, ot_lib::OT_EX_ATTRIBUTE_LOCKED,
  ot_lib::OT_EX_ENCODING_ERROR, ot_lib::OT_EX_DECODING_ERROR, ot_lib::OT_EX_SOCKET_SERVER_INIT_FAILED, ot_lib::OT_EX_SOCKET_SERVER_BIND_FAILED,
  ot_lib::OT_EX_SOCKET_SERVER_SOCKET_CREATION_ERROR, ot_lib::OT_EX_SOCKET_UTILITY_CONNECTION_FAILED, ot_lib::OT_EX_SOCKET_UTILITY_WRITING_ERROR, ot_lib::OT_EX_SOCKET_UTILITY_READING_ERROR,
  ot_lib::OT_EX_CODEC_NOT_FOUND, ot_lib::OT_EX_CODEC_REGISTRATION_FAILED
}
enum  ot_lib::OT_IE_ACCESS { ot_lib::IE_PUBLIC, ot_lib::IE_PRIVATE, ot_lib::IE_DENY }
enum  ot_lib::OT_IE_STATUS { ot_lib::IE_LOCKED, ot_lib::IE_UNLOCKED }
enum  ot_lib::OT_MESSAGE_TYPE {
  ot_lib::ACTION, ot_lib::ACTIONRESP, ot_lib::GET, ot_lib::GETRESP,
  ot_lib::SET, ot_lib::SETRESP, ot_lib::PING, ot_lib::PINGRESP,
  ot_lib::DUMP, ot_lib::DUMPRESP, ot_lib::ERROR
}

Functions

bool ot_lib::isws (char c, char const *const wstr)
template<typename Container>
void ot_lib::stringtok (Container &l, string const &s, char const *const ws=" \t\n")
string ot_lib::getUserName (void)
ot_objot_lib::buildOTObjFromData (istream &s)
 ot_lib::OT_EXCEPTION_BUILDER (codecNotFound, OT_EX_CODEC_NOT_FOUND,"Codec not found")
 ot_lib::OT_EXCEPTION_BUILDER (codecRegistrationFailed, OT_EX_CODEC_REGISTRATION_FAILED,"Codec registration failed")


Define Documentation

#define OT_ASSERT (  )     if(!X) {cerr << "**** OT_LIB : ASSERT failed ! file:" << __FILE__ << " line:" << __LINE__ << " [" << #X << "]" << endl;exit(1);}

#define OT_ASSERT_WE ( X,
EC   ) 

Value:

{ \
  try \
  { \
    X; \
  } \
  catch(const ot_exception &e) \
  { \
    if(e.getType() != EC) {cerr << "**** OT_LIB : ASSERT failed !   file:" << __FILE__ << " line:" << __LINE__ << "  [" << #X << "]" << endl;exit(1);} \
  } \
  catch(...) \
  { \
    cerr << "**** OT_LIB : ASSERT failed !   file:" << __FILE__ << " line:" << __LINE__ << "  [" << #X << "]" << endl;exit(1); \
  } \
}

#define OT_DEBUG_CRITICAL (  )     cerr << "**** OT_LIB DEBUG (CRITICAL) : " << X << " file:" << __FILE__ << " line:" << __LINE__ << endl

#define OT_DEBUG_CRITICAL_FL ( X,
F,
 )     cerr << "**** OT_LIB DEBUG (CRITICAL) : " << X << " file:" << F << " line:" << L << endl

#define OT_DEBUG_INFO (  ) 

#define OT_DEBUG_WARNING (  )     cerr << "**** OT_LIB DEBUG (WARNING) : " << X << " file:" << __FILE__ << " line:" << __LINE__ << endl

#define OT_LIB_VERSION   4.1


Generated on Sun May 4 12:42:43 2008 for OT_LIB 4.1 by  doxygen 1.5.5