OS-IoT
Functions | Namespaces | Typedefs | Enumerations
onem2m.hxx File Reference

Go to the source code of this file.

Functions

std::unique_ptr< ::xml_schema::typeonem2m::createResource (const std::string &address, const std::string &requestId,::xml_schema::type &resource, long &result,::xml_schema::integer &resObjType)
 
std::unique_ptr< ::xml_schema::typeonem2m::deleteResource (const std::string &address, const std::string &requestId, long &result,::xml_schema::integer &resObjType)
 
std::string onem2m::getCaInfo ()
 
std::string onem2m::getCaPath ()
 
std::string onem2m::getCipherList ()
 
std::string onem2m::getFrom ()
 
bool onem2m::getHttpServerRunning ()
 
std::string onem2m::getKeyPasswd ()
 
size_t onem2m::getMaxAcceptSize ()
 
onem2mProtocol onem2m::getProtocol ()
 
std::string onem2m::getPskIdentity ()
 
std::string onem2m::getPskKey ()
 
std::string onem2m::getSslCert ()
 
std::string onem2m::getSslKey ()
 
std::string onem2m::getSubjectAltNameAllowed ()
 
onem2mTransport onem2m::getTransport ()
 
bool onem2m::getVerifyHost ()
 
bool onem2m::getVerifyPeer ()
 
void onem2m::initialize ()
 
std::unique_ptr< ::xml_schema::typeonem2m::retrieveResource (const std::string &address, const std::string &requestId, long &result,::xml_schema::integer &resObjType)
 
void onem2m::setCaInfo (const std::string)
 
void onem2m::setCaPath (const std::string)
 
void onem2m::setCipherList (const std::string)
 
void onem2m::setDebug (bool debugOut)
 
void onem2m::setFrom (const std::string newFrom)
 
void onem2m::setHostName (const std::string name)
 
void onem2m::setKeyPasswd (const std::string)
 
void onem2m::setMaxAcceptSize (const size_t newMaxAcceptSize)
 
void onem2m::setProtocol (const onem2mProtocol)
 
void onem2m::setPskIdentity (const std::string)
 
void onem2m::setPskKey (const std::string)
 
void onem2m::setSslCert (const std::string)
 
void onem2m::setSslKey (const std::string)
 
void onem2m::setSubjectAltNameAllowed (const std::string)
 
void onem2m::setTransport (const onem2mTransport)
 
void onem2m::setVerifyHost (const bool)
 
void onem2m::setVerifyPeer (const bool)
 
long onem2m::startHttpServer (const std::vector< std::string > &addressRegex, long port, notificationCallbackFn callback)
 
void onem2m::stopHttpServer ()
 
void onem2m::terminate ()
 
std::unique_ptr< ::xml_schema::typeonem2m::updateResource (const std::string &address, const std::string &requestId, const ::xml_schema::type *resource, long &result,::xml_schema::integer &resObjType)
 
std::unique_ptr< ::xml_schema::typeonem2m::updateResource (const std::string &address, const std::string &requestId, const ::xml_schema::type &resource, long &result,::xml_schema::integer &resObjType)
 

Namespaces

 onem2m
 Public interface for functions and classes in the OS-IoT library.
 

Typedefs

typedef std::function< onem2mResponseStatusCode(std::string, std::string &,::onem2m::notification *)> onem2m::notificationCallbackFn
 

Enumerations

enum  onem2m::onem2mAccesControlOperation : ::xml_schema::integer {
  onem2m::accessControlCreate = 1, onem2m::accessControlRetrieve = 2, onem2m::accessControlUpdate = 4, onem2m::accessControlDelete = 8,
  onem2m::accessControlNotify = 16, onem2m::accessControlDiscover = 32, onem2m::accessControlAll = 63
}
 
enum  onem2m::onem2mMotificationContentType : ::xml_schema::integer { onem2m::nctAllAttributes = 1, onem2m::nctModifiedAttributes, onem2m::nctResourceId }
 
enum  onem2m::onem2mNotificationEventType : ::xml_schema::integer {
  updateOfResource = 1, deleteOfResource, createOfDirectChildResource, deleteOfDirectChildResource,
  retrieveOfContainerResourceWithNoChildResource
}
 
enum  onem2m::onem2mOperation : ::xml_schema::integer {
  onem2m::operationCreate = 1, onem2m::operationRetrieve, onem2m::operationUpdate, onem2m::operationDelete,
  onem2m::operationNotify
}
 
enum  onem2m::onem2mProtocol { onem2m::protocolXml = 1, onem2m::protocolJson }
 
enum  onem2m::onem2mResourceType : ::xml_schema::integer {
  onem2m::resourceTypeUnknown = 0, resourceTypeAccessControlPolicy, resourceTypeAE, resourceTypeContainer,
  resourceTypeContentInstance, resourceTypeCSEBase, resourceTypePollingChannel = 15, resourceTypeSubscription = 23,
  resourceTypeFlexContainerResource = 28, onem2m::operationTypeNotification = 30500, onem2m::objectTypeListOfURIs = 30501
}
 
enum  onem2m::onem2mResponseStatusCode : long {
  rcACCEPTED = 1000, rcOK = 2000, rcCREATED = 2001, rcDELETED = 2002,
  rcUPDATED = 2004, rcBAD_REQUEST = 4000, rcNOT_FOUND = 4004 , rcREQUEST_TIMEOUT = 4008,
  rcSUBSCRIPTION_CREATOR_HAS_NO_PRIVILEGE = 4101, rcCONTENTS_UNACCEPTABLE = 4102, rcORIGINATOR_HAS_NO_PRIVILEGE = 4103, rcGROUP_REQUEST_IDENTIFIER_EXISTS = 4104,
  rcCONFLICT = 4105, rcORIGINATOR_HAS_NOT_REGISTERED = 4106, rcSECURITY_ASSOCIATION_REQUIRED = 4107, rcINVALID_CHILD_RESOURCE_TYPE = 4108,
  rcNO_MEMBERS = 4109, rcGROUP_MEMBER_TYPE_INCONSISTENT = 4110, rcESPRIM_UNSUPPORTED_OPTION = 4111, rcESPRIM_UNKNOWN_KEY_ID = 4112,
  rcGESPRIM_UNKNOWN_ORIG_RAND_ID = 4113, rcESPRIM_UNKNOWN_RECV_RAND_ID = 4114, rcGESPRIM_BAD_MAC = 4115, rcESPRIM_IMPERSONATION_ERROR = 4116,
  rcINTERNAL_SERVER_ERROR = 5000, rcNOT_IMPLEMENTED = 5001, rcTARGET_NOT_REACHABLE = 5103, rcRECEIVER_HAS_NO_PRIVILEGE = 5105,
  rcALREADY_EXISTS = 5106, rcTARGET_NOT_SUBSCRIBABLE = 5203, rcSUBSCRIPTION_VERIFICATION_INITIATION_FAILED = 5204, rcSUBSCRIPTION_HOST_HAS_NO_PRIVILEGE = 5205,
  rcNON_BLOCKING_REQUEST_NOT_SUPPORTED = 5206, rcNOT_ACCEPTABLE = 5207, rcDISCOVERY_DENIED_BY_IPE = 5208, rcGROUP_MEMBERS_NOT_RESPONDED = 5209,
  rcESPRIM_DECRYPTION_ERROR = 5210, rcESPRIM_ENCRYPTION_ERROR1 = 5211, rcESPRIM_ENCRYPTION_ERROR2 = 5212 , rcEXTERNAL_OBJECT_NOT_FOUND = 6005,
  rcMAX_NUMBER_OF_MEMBER_EXCEEDED = 6010, rcMGMT_SESSION_CANNOT_BE_ESTABLISHED = 6020, rcMGMT_SESSION_ESTABLISHMENT_TIMEOUT = 6021, rcINVALID_CMDTYPE = 6022,
  rcINVALID_ARGUMENTS = 6023, rcINSUFFICIENT_ARGUMENTS = 6024, rcMGMT_CONVERSION_ERROR = 6025, rcMGMT_CANCELLATION_FAILED = 6026,
  rcALREADY_COMPLETE = 6028, rcMGMT_COMMAND_NOT_CANCELLABLE = 6029
}
 
enum  onem2m::onem2mResult : long {
  onem2mHttpCONTINUE = 100, onem2mHttpSWITCHING_PROTOCOLS = 101, onem2mHttpOK = 200, onem2mHttpCREATED = 201,
  onem2mHttpACCEPTED = 202, onem2mHttpNON_AUTHORITATIVE_INFORMATION = 203, onem2mHttpNO_CONTENT = 204 , onem2mHttpPARTIAL_CONTENT = 206,
  onem2mHttpMULTIPLE_CHOICES = 300 , onem2mHttpFOUND = 302, onem2mHttpSEE_OTHER = 303, onem2mHttpNOT_MODIFIED = 304,
  onem2mHttpUSE_PROXY = 305, onem2mHttpTEMPORARY_REDIRECT = 307, onem2mHttpBAD_REQUEST = 400, onem2mHttpUNAUTHORIZED = 401,
  onem2mHttpPAYMENT_REQUIRED = 402, onem2mHttpFORBIDDEN = 403, onem2mHttpNOT_FOUND = 404, onem2mHttpMETHOD_NOT_ALLOWED = 405,
  onem2mHttpNOT_ACCEPTABLE = 406, onem2mHttpPROXY_AUTHENTICATION_REQUIRED = 407, onem2mHttpREQUEST_TIMEOUT = 408, onem2mHttpCONFLICT = 409,
  onem2mHttpGONE = 410, onem2mHttpLENGTH_REQUIRED = 411, onem2mHttpPRECONDITION_FAILED = 412, onem2mHttpREQUEST_ENTITY_TOO_LARGE = 413,
  onem2mHttpREQUEST_URI_TOO_LONG = 414, onem2mHttpUNSUPPORTED_MEDIA_TYPE = 415, onem2mHttpREQUESTED_RANGE_NOT_SATISFIABLE = 416, onem2mHttpEXPECTATION_FAILED = 417,
  onem2mHttpUNPROCESSABLE_ENTITY = 422, onem2mHttpTOO_MANY_REQUESTS = 429, onem2mHttpINTERNAL_SERVER_ERROR = 500, onem2mHttpNOT_IMPLEMENTED = 501,
  onem2mHttpBAD_GATEWAY = 502, onem2mHttpSERVICE_UNAVAILABLE = 503, onem2mHttpGATEWAY_TIMEOUT = 504, onem2mHttpHTTP_VERSION_NOT_SUPPORTED = 505,
  onem2mCURLE_UNSUPPORTED_PROTOCOL = 1001, onem2mCURLE_FAILED_INIT , onem2mCURLE_NOT_BUILT_IN, onem2mCURLE_COULDNT_RESOLVE_PROXY,
  onem2mCURLE_COULDNT_RESOLVE_HOST, onem2mCURLE_COULDNT_CONNECT, onem2mCURLE_WEIRD_SERVER_REPLY, onem2mCURLE_REMOTE_ACCESS_DENIED,
  onem2mCURLE_FTP_ACCEPT_FAILED, onem2mCURLE_FTP_WEIRD_PASS_REPLY, onem2mCURLE_FTP_ACCEPT_TIMEOUT, onem2mCURLE_FTP_WEIRD_PASV_REPLY,
  onem2mCURLE_FTP_WEIRD_227_FORMAT, onem2mCURLE_FTP_CANT_GET_HOST, onem2mCURLE_HTTP2, onem2mCURLE_FTP_COULDNT_SET_TYPE,
  onem2mCURLE_PARTIAL_FILE, onem2mCURLE_FTP_COULDNT_RETR_FILE, onem2mCURLE_OBSOLETE20, onem2mCURLE_QUOTE_ERROR,
  onem2mCURLE_HTTP_RETURNED_ERROR, onem2mCURLE_WRITE_ERROR, onem2mCURLE_OBSOLETE24, onem2mCURLE_UPLOAD_FAILED,
  onem2mCURLE_READ_ERROR, onem2mCURLE_OUT_OF_MEMORY, onem2mCURLE_OPERATION_TIMEDOUT, onem2mCURLE_OBSOLETE29,
  onem2mCURLE_FTP_PORT_FAILED, onem2mCURLE_FTP_COULDNT_USE_REST, onem2mCURLE_OBSOLETE32, onem2mCURLE_RANGE_ERROR,
  onem2mCURLE_HTTP_POST_ERROR, onem2mCURLE_SSL_CONNECT_ERROR, onem2mCURLE_BAD_DOWNLOAD_RESUME, onem2mCURLE_FILE_COULDNT_READ_FILE,
  onem2mCURLE_LDAP_CANNOT_BIND, onem2mCURLE_LDAP_SEARCH_FAILED, onem2mCURLE_OBSOLETE40, onem2mCURLE_FUNCTION_NOT_FOUND,
  onem2mCURLE_ABORTED_BY_CALLBACK, onem2mCURLE_BAD_FUNCTION_ARGUMENT, onem2mCURLE_OBSOLETE44, onem2mCURLE_INTERFACE_FAILED,
  onem2mCURLE_OBSOLETE46, onem2mCURLE_TOO_MANY_REDIRECTS, onem2mCURLE_UNKNOWN_OPTION, onem2mCURLE_TELNET_OPTION_SYNTAX,
  onem2mCURLE_OBSOLETE50, onem2mCURLE_PEER_FAILED_VERIFICATION , onem2mCURLE_SSL_ENGINE_NOTFOUND, onem2mCURLE_SSL_ENGINE_SETFAILED,
  onem2mCURLE_SEND_ERROR, onem2mCURLE_RECV_ERROR, onem2mCURLE_OBSOLETE57 , onem2mCURLE_BAD_CONTENT_ENCODING,
  onem2mCURLE_LDAP_INVALID_URL, onem2mCURLE_FILESIZE_EXCEEDED, onem2mCURLE_USE_SSL_FAILED, onem2mCURLE_SEND_FAIL_REWIND,
  onem2mCURLE_SSL_ENGINE_INITFAILED, onem2mCURLE_LOGIN_DENIED, onem2mCURLE_TFTP_NOTFOUND, onem2mCURLE_TFTP_PERM,
  onem2mCURLE_REMOTE_DISK_FULL, onem2mCURLE_TFTP_ILLEGAL, onem2mCURLE_TFTP_UNKNOWNID, onem2mCURLE_REMOTE_FILE_EXISTS,
  onem2mCURLE_TFTP_NOSUCHUSER, onem2mCURLE_CONV_FAILED, onem2mCURLE_CONV_REQD, onem2mCURLE_SSL_CACERT_BADFILE,
  onem2mCURLE_REMOTE_FILE_NOT_FOUND, onem2mCURLE_SSH, onem2mCURLE_SSL_SHUTDOWN_FAILED, onem2mCURLE_AGAIN,
  onem2mCURLE_SSL_CRL_BADFILE, onem2mCURLE_SSL_ISSUER_ERROR, onem2mCURLE_FTP_PRET_FAILED, onem2mCURLE_RTSP_CSEQ_ERROR,
  onem2mCURLE_RTSP_SESSION_ERROR, onem2mCURLE_FTP_BAD_FILE_LIST, onem2mCURLE_CHUNK_FAILED, onem2mCURLE_NO_CONNECTION_AVAILABLE ,
  onem2mCURLE_HTTP2_STREAM, onem2mErrCantOpenServer = 2001, onem2mErrServerAlreadyRunning
}
 
enum  onem2m::onem2mTransport { onem2m::transportHttp = 1, onem2m::transportHttpsCertificate, onem2m::transportHttpsPsk }
 

Detailed Description

This file contains the constants used in the OS-IoT API.