FARGOS/VISTA Object Management Environment Core  ..
FARGOS/VISTA Object Management Environment Core Table of Contents
OMEapi.h
Go to the documentation of this file.
1 #ifndef _OME_API_H
2 #define _OME_API_H "$Id: OMEapi.h 340 2020-05-19 18:43:48Z geoff $"
4 
6 #include <OMEioObjects.h>
7 
21 private:
36 
38 
39  int sendString(const OMEstring &data, int *errRet = nullptr);
40 
41  OMEstring *receiveString(int *errRet = nullptr);
42 
43  OMEstring *encodeData(const OMEtype &messData);
44 
45  OMEtype *decodeData(const OMEstring &data);
46 
47  int negotiateKey();
48 public:
49 
50  OMEconnection(const OMEoid &objId, const OMEstring &destination, const OMEtype &authentication);
51 
53 
54  int establishConnection();
55 
56  int sendMessage(const OMEtype &dest, int *errRet = nullptr);
57 
58  int receiveMessage(OMEtype &result, int *errRet = nullptr);
59 
60  int getPeerObject(OMEtype &obj) {
61  obj = peerOID;
62  return (0);
63  }
64 
66  return (descriptor);
67  }
68 
69  int getHandle() const {
70  if (descriptor == nullptr) return (-1);
71  return (descriptor->ioHandle);
72  }
73 }; // end class OMEconnection
74 
75 
83 class OMEapi {
84 private:
85  static int connectionCount;
91 public:
92  static OMEassoc *makeACL(const OMEstring &userName);
99  OMEapi(const OMEassoc &acl, const char *dest) NONNULL_CLASS_PARAMETERS(3);
100 
101  OMEapi(const OMEassoc &acl, const OMEstring &dest);
102 
103  ~OMEapi();
104 
111  int establishConnection(OMEtype &authentication);
112 
134  int invokeMethod(const OMEtype &dest, const OMEtype &methodName,
135  const OMEtype &args, const OMEtype *fromObj = nullptr,
136  const OMEassoc *context = nullptr);
137 
162  int importInvocation(OMEtype &methodName, OMEtype &argv,
163  OMEtype *fromObj = nullptr, OMEtype *destObj = nullptr,
164  OMEtype *context = nullptr, OMEtype *user = nullptr);
165 
169  void setContext(const OMEassoc &env) { defaultContext = env; }
170 
171  void setUserInfo();
172 
181  int getPeerObject(OMEtype &obj) {
182  if (conn == nullptr) return (-1);
183  return (conn->getPeerObject(obj));
184  }
185 
196  int getThisObject(OMEtype &obj) {
197  if (conn == nullptr) return (-1);
198  obj = *thisObject;
199  return (0);
200  }
201 
208  if (conn == nullptr) return (nullptr);
209  return (conn->getDescriptor());
210  }
211 
220  int getHandle() const {
221  if (conn == nullptr) {
222  return (-1);
223  }
224  return (conn->getHandle());
225  }
226 }; // end class OMEapi
227 
231 #endif
232 /* vim: set expandtab shiftwidth=4 tabstop=4: */
OMEmakeACL
OMEassoc * OMEmakeACL(const OMEstring &entity, uint_fast32_t defaultPermission, const OMEassoc &methodList)
Definition: OMEobjACL.cpp:164
OMEthread::threadContext
OMEtype threadContext
Definition: OMEthread.h:77
SHA256hash
int SHA256hash(OMEthread *thread, OMEtype &result, const OMEtype &message)
Definition: OILcrypto.cpp:21
if_indextoname
char * if_indextoname(uint32_t ifindex, char *ifname)
ARG_IS_INT32
#define ARG_IS_INT32(x)
Definition: OILbits.cpp:11
OME_IO_MULTICAST
#define OME_IO_MULTICAST
Definition: OMEmanifests.h:133
makeAsString
int makeAsString(OMEthread *thread, OMEtype &result, const OMEtype &args)
Definition: OILdebug.cpp:298
OMEconnection::sendString
int sendString(const OMEstring &data, int *errRet=nullptr)
Definition: OMEapi.cpp:555
allocSNMPsession
unsigned int allocSNMPsession(SNMPhandle handle)
Definition: OILsnmp.cpp:10
OMEconnection::secret
OMEstring secret
Definition: OMEapi.h:24
OMEencodeBuffer::condenseIntoString
OMEstring * condenseIntoString(bool includeVersionID)
Serialize all OMEencodeBufferElement items into a single string.
Definition: OMEencode.cpp:75
OMElicense.cpp
OMEprocInfo.h
OME process information implementation.
OME_IO_NONBLOCKING
#define OME_IO_NONBLOCKING
Definition: OMEmanifests.h:130
sine
int sine(OMEthread *thread, OMEtype &result, const OMEtype &arg)
Definition: OILmath.cpp:31
base64ToASCII
int base64ToASCII(OMEthread *thread, OMEtype &result, const OMEtype &source)
Definition: OILmimeDecode.cpp:338
OMEconnection::peerOID
OMEtype peerOID
Definition: OMEapi.h:28
arcSine
int arcSine(OMEthread *thread, OMEtype &result, const OMEtype &arg)
Definition: OILmath.cpp:94
getRandomInteger
int getRandomInteger(OMEthread *thread, OMEtype &result, const OMEtype &upperBound)
Definition: OILcrypto.cpp:205
OMEconnection::~OMEconnection
~OMEconnection()
Definition: OMEapi.cpp:82
OME_NLM
@ OME_NLM
Definition: OMEmanifests.h:90
OMEconnection::negotiateKey
int negotiateKey()
Definition: OMEapi.cpp:116
OMEstring::substr
ssize_t substr(const OMEstring &sub, size_t startOffset=0) const
Definition: OMEstring.h:490
l
Ïúíþ ð Ø ˜ ˜ __text __TEXT € __apple_names __DWARF __apple_objc __DWARF __apple_namespac__DWARF H X __apple_types __DWARF l
Definition: tmp3.o.cpp:1
findSubstring
int findSubstring(OMEthread *thread, OMEtype &result, const OMEtype &source, const OMEtype &substring)
Definition: OILtypeFuncs.cpp:204
convertLocalRelativeTimeToAbsolute
int convertLocalRelativeTimeToAbsolute(OMEthread *thread, OMEtype &result, const OMEtype &, const OMEtype &)
Definition: OILtime.cpp:55
OMEconvertRFC1123date
OME_DLL_EXPORT int OMEconvertRFC1123date(OMEtype &result, const OMEtype &timeString)
Convert a text string in RFC 1123 format into an OME absolute time reference.
Definition: OMEtime.cpp:342
sock
SOCKET sock
Definition: sockspx.c:203
OMEthread::sendMessage
OME_FAST_CALL int sendMessage(const OMEstring &methodName, const uint32_t hashIndx, const uint32_t argc, const OMEarray &argv, const OMEtype &destObj, const OMEtype *fromObj=nullptr) const
Definition: OMEthread.cpp:470
OMEset::elementCount
uint32_t elementCount() const OME_ALWAYS_INLINE
Returns the number of elements in the set.
Definition: OMEset.h:213
OMEremoveSelectEvent
int OMEremoveSelectEvent(uint64_t handle, OMEioEvent::OMEselectMode m)
Definition: OMEioEvents.cpp:237
OMEinitNewCipher
int OMEinitNewCipher(const OMEstring &initVector)
Definition: aesCover.cpp:29
arcTangent2
int arcTangent2(OMEthread *thread, OMEtype &result, const OMEtype &arg, const OMEtype &arg2)
Definition: OILmath.cpp:136
hexToBinary
int hexToBinary(OMEthread *thread, OMEtype &result, const OMEtype &args)
Definition: OILdebug.cpp:344
OMEapi::destination
OMEstring destination
Definition: OMEapi.h:87
OME_FLOAT
@ OME_FLOAT
Definition: OMEmanifests.h:82
OMEtype::initializeAsType
void initializeAsType(const enum OMEtypes_t t)
The fundamental tagged data type used through the FARGOS/VISTA infrastructure.
Definition: OMEtype.cpp:95
gunzipString
int gunzipString(OMEthread *thread, OMEtype &result, const OMEtype &data)
Definition: OILencode.cpp:154
OMEapi::setContext
void setContext(const OMEassoc &env)
Definition: OMEapi.h:169
iso8601Date
int iso8601Date(OMEthread *thread, OMEtype &result, const OMEtype &argData)
Definition: OILtime.cpp:112
OMEconnection::descriptor
OMEioDescriptor * descriptor
Definition: OMEapi.h:22
OMEevent::timerExpired
@ timerExpired
elapsed time timer
Definition: OMEevent.h:25
OME_DISABLE_QUOTE_OUTPUT
@ OME_DISABLE_QUOTE_OUTPUT
Definition: OMEmanifests.h:110
typeAsText
int typeAsText(OMEthread *thread, OMEtype &result, const OMEtype &arg)
Definition: OILtypeFuncs.cpp:159
parseMIMEblock
int parseMIMEblock(OMEthread *thread, OMEtype &result, const OMEtype &data)
Definition: OILmimeDecode.cpp:352
renameFile
int renameFile(OMEthread *thread, OMEtype &result, const OMEtype &orgFileName, const OMEtype &newFileName)
Definition: OILio.cpp:880
OMEprofileCounter< uint32_t >
convertAbsoluteToLocalRelativeTime
int convertAbsoluteToLocalRelativeTime(OMEthread *thread, OMEtype &result, const OMEtype &tData)
Definition: OILtime.cpp:66
s
const char s[]
Definition: t.cpp:4
closeIO
int closeIO(OMEthread *thread, OMEtype &result, const OMEtype &ioID, const OMEtype &flags, const OMEtype &sidesMask)
Definition: OILio.cpp:151
OMEtype::typeName
const char * typeName() const NONNULL_RETURN
Definition: OMEbaseType.h:874
OMEdebugFlag
SMV_StandaloneNumeric< uint32_t > OMEdebugFlag("debugFlag")
arcCosine
int arcCosine(OMEthread *thread, OMEtype &result, const OMEtype &arg)
Definition: OILmath.cpp:73
OMEconnection::encryptCipherID
int encryptCipherID
Definition: OMEapi.h:30
getEnvironmentVariable
int getEnvironmentVariable(OMEthread *thread, OMEtype &result, const OMEtype &varName)
Definition: OILtypeFuncs.cpp:652
OMEmakeSHA1hash
OMEstring * OMEmakeSHA1hash(const OMEstring &message)
Compute Secure Hash Algorithm 1 over an OMEstring.
Definition: pkRoutines.cpp:83
OMEapi.h
compressString
int compressString(OMEthread *thread, OMEtype &result, const OMEtype &data)
Definition: OILencode.cpp:100
OMEfunctions.h
OME utility functions.
OMEioObjects.h
ARG_IS_INT32
#define ARG_IS_INT32(x)
Definition: OILsnmp.cpp:5
if_nametoindex
uint32_t if_nametoindex(const char *ifname)
OMEset::elementExists
bool elementExists(const OMEtype &elem) const OME_ALWAYS_INLINE
Returns a Boolean indication if an indicated OMEtype element is present within the set.
Definition: OMEset.h:223
INIT_DECLARE_OILmath
OME_DLL_EXPORT void INIT_DECLARE_OILmath()
Definition: OILmath.cpp:564
OMEstartCriticalSection
void OMEstartCriticalSection(eOMEcriticalSectionLabel regionID)
Definition: OMEmutex.cpp:217
INIT_DECLARE_OILio
OME_DLL_EXPORT void INIT_DECLARE_OILio()
Definition: OILio.cpp:963
displayVisible
int displayVisible(OMEthread *thread, OMEtype &result, const OMEtype &arg)
Definition: OILdebug.cpp:372
acceptConnection
int acceptConnection(OMEthread *thread, OMEtype &result, const OMEtype &ioID)
Definition: OILio.cpp:557
OMEdisplayableAddress
OMEstring * OMEdisplayableAddress(const struct sockaddr *sock, const int len, const uint32_t openMode)
Convert sockaddr data into a text string.
Definition: OMEaddr.cpp:349
OMEapi::connectionCount
static int connectionCount
Definition: OMEapi.h:85
OME_UINT16
@ OME_UINT16
Definition: OMEmanifests.h:98
decryptSessionKey
int decryptSessionKey(OMEthread *thread, OMEtype &result, const OMEtype &privateKey, const OMEtype &encryptedKey)
Definition: OILcrypto.cpp:84
OMEarray::deleteIndex
bool deleteIndex(const uint32_t i)
Definition: OMEarray.h:184
LogMessageRecord::writeAsTextToBuffer
size_t writeAsTextToBuffer(unsigned int prefixWithFlags) OME_ALWAYS_INLINE OME_ALWAYS_OPTIMIZE("-O3")
Format the LogMessageRecord as a text output line (using formatRecordAsText()) and pass the resulting...
Definition: logging_api.hpp:1415
charToString
int charToString(OMEthread *thread, OMEtype &result, const OMEtype &arg)
Definition: OILtypeFuncs.cpp:82
OMEconnection::receiveString
OMEstring * receiveString(int *errRet=nullptr)
Definition: OMEapi.cpp:624
OMEioVector::data
unsigned char * data
Definition: OMEioObjects.h:19
exponential
int exponential(OMEthread *thread, OMEtype &result, const OMEtype &arg)
Definition: OILmath.cpp:229
concatBits
int concatBits(OMEthread *thread, OMEtype &result, const OMEtype &bitData, const OMEtype &bitsToAdd, const OMEtype &currentState)
Definition: OILbits.cpp:119
listInterfaces
int listInterfaces(OMEthread *thread, OMEtype &result)
Definition: OILio.cpp:954
OMEconnection::encodeData
OMEstring * encodeData(const OMEtype &messData)
Definition: OMEapi.cpp:593
OMEioVector::length
size_t length
Definition: OMEioObjects.h:20
OMEstring::reverse
OMEstring * reverse() const
Definition: OMEstring.h:526
listEncodingVersions
int listEncodingVersions(OMEthread *thread, OMEtype &result)
Definition: OILencode.cpp:18
stripHTML
int stripHTML(OMEthread *thread, OMEtype &result, const OMEtype &source)
Definition: OILhttpFuncs.cpp:457
OMEapi::getThisObject
int getThisObject(OMEtype &obj)
Definition: OMEapi.h:196
OMEioEvent::selectRead
@ selectRead
Definition: OMEioEvents.h:21
ARG_IS_INT32
#define ARG_IS_INT32(x)
Definition: OILmimeDecode.cpp:10
OMEruntime.h
OMEconnection::decryptKeyID
int decryptKeyID
Definition: OMEapi.h:33
OMEassoc::isEmpty
bool isEmpty() const OME_ALWAYS_INLINE
Definition: OMEassoc.h:246
asciiToBase64
int asciiToBase64(OMEthread *thread, OMEtype &result, const OMEtype &source, const OMEtype &breakIntoLines)
Definition: OILmimeDecode.cpp:318
OMEapi::conn
OMEconnection * conn
Definition: OMEapi.h:88
LogManager::getLogPrefixMask
uint_fast32_t getLogPrefixMask() const OME_ALWAYS_INLINE
Get current log prefix mask. It will be a combination of bits composed from LogMessageRecord::LogPref...
Definition: logging_api.hpp:647
OMEassoc
Implements associative array of OMEtype elements.
Definition: OMEassoc.h:112
OMEassoc::nextIndex
ASSOC_HASH_KEY_t nextIndex(const ASSOC_HASH_KEY_t currentSubscript) const
Definition: OMEassoc.h:236
OMEioEvent::selectWrite
@ selectWrite
Definition: OMEioEvents.h:21
OMEuncompressString
OMEstring * OMEuncompressString(const OMEstring &data)
Uncompress a previously compressed string.
Definition: OMEcompress.cpp:61
OMEapi::thisObject
OMEoid * thisObject
Definition: OMEapi.h:86
OMEthread::getThisOID
const OMEoid & getThisOID() const OME_ALWAYS_INLINE
Definition: OMEthread.h:154
floor
int floor(OMEthread *thread, OMEtype &result, const OMEtype &arg)
Definition: OILmath.cpp:365
OMElistDefinedEncodingVersions
uint_fast16_t OMElistDefinedEncodingVersions(OMEarray &list)
Obtain a list of available encoding routines.
Definition: OMEencode.cpp:134
OMEstring
Implements text and binary string storage.
Definition: OMEstring.h:305
uncompressString
int uncompressString(OMEthread *thread, OMEtype &result, const OMEtype &data)
Definition: OILencode.cpp:118
encodeData
int encodeData(OMEthread *thread, OMEtype &result, const OMEtype &data, const OMEtype &version)
Definition: OILencode.cpp:26
decryptMessage
int decryptMessage(OMEthread *thread, OMEtype &result, const OMEtype &cipherData, const OMEtype &message)
Definition: OILcrypto.cpp:178
OMEencode.h
OME type encoding routines.
OMEencodeBuffer
Buffer into which OMEtype data is encoded.
Definition: OMEencode.h:54
OMEfreeEncryptionKey
int OMEfreeEncryptionKey(int useKey)
Definition: aesCover.cpp:111
OMEconnection::getPeerObject
int getPeerObject(OMEtype &obj)
Definition: OMEapi.h:60
EAGAIN
#define EAGAIN
Definition: tmp.o.cpp:64
MD5hash
int MD5hash(OMEthread *thread, OMEtype &result, const OMEtype &message)
Definition: OILcrypto.cpp:33
OMEarray::indexExists
bool indexExists(const uint32_t i) const
Definition: OMEarray.h:202
hyperbolicCosine
int hyperbolicCosine(OMEthread *thread, OMEtype &result, const OMEtype &arg)
Definition: OILmath.cpp:166
OMEevent::isPosted
bool isPosted() const
Check if event has been posted.
Definition: OMEevent.h:88
logOutput
int logOutput(OMEthread *thread, OMEtype &result, const OMEtype &args)
Definition: OILdebug.cpp:199
OMEtype::value
union OMEtype::@26 value
OMEencryptString
int OMEencryptString(int useCipher, int useKey, const OMEstring &input, OMEstring &result)
Definition: aesCover.cpp:124
ceiling
int ceiling(OMEthread *thread, OMEtype &result, const OMEtype &arg)
Definition: OILmath.cpp:344
OMEtype
Fundamental ANY type for FARGOS/VISTA Object Management Environment.
Definition: OMEbaseType.h:250
OMEprofileRecord::getValueOfCounter
static const OMEtype getValueOfCounter(const char *name) NONNULL_PARAMETERS(1)
Return the value of an named variable.
Definition: OMEdebugInfo.cpp:355
OMEhash
OME_DLL_EXPORT uint32_t OMEhash(const unsigned char *data, const uint32_t len) NONNULL_PARAMETERS(1)
Fast 32-bit hash over a buffer.
Definition: OMEhash.cpp:13
OMEassoc::indexExists
bool indexExists(const ASSOC_HASH_KEY_t i) const
Definition: OMEassoc.h:226
OMEobject
Base class and abstract interface for an object within a FARGOS/VISTA Object Management Environment.
Definition: OMEobject.h:22
decodeData
int decodeData(OMEthread *thread, OMEtype &result, const OMEtype &data)
Definition: OILencode.cpp:61
allocateXMLparser
int allocateXMLparser(OMEthread *thread, OMEtype &result)
Definition: OILxmlParse.cpp:145
OME_DOUBLE
@ OME_DOUBLE
Definition: OMEmanifests.h:83
getHostKey
int getHostKey(OMEthread *thread, OMEtype &result, const OMEtype &secret, const OMEtype &logicalDomain)
Definition: OILcrypto.cpp:277
OMEmakePublicKey
OMEstring * OMEmakePublicKey(const OMEstring &privateKey)
Definition: pkRoutines.cpp:192
getPeerAddress
int getPeerAddress(OMEthread *thread, OMEtype &result, const OMEtype &ioID)
Definition: OILio.cpp:603
OMEconnection::encryptKeyID
int encryptKeyID
Definition: OMEapi.h:31
CMD_SUBSCRIPT
const int CMD_SUBSCRIPT
Definition: OMEapi.cpp:22
debugDisplay
int debugDisplay(OMEthread *thread, OMEtype &result, const OMEtype &args)
Definition: OILdebug.cpp:144
OMEconnection::thisObject
OMEoid * thisObject
Definition: OMEapi.h:26
OMEdebugExceptions
#define OMEdebugExceptions
Definition: OMEdebugInfo.h:24
OMEwaitForIO
int OMEwaitForIO(uint_fast32_t delay)
Definition: OMEioEvents.cpp:395
SNMPhandle
void * SNMPhandle
Definition: OILsnmp.cpp:7
OMEshutdownRequested
int32_t OMEshutdownRequested()
Returns indication if the shutdown of the FARGOS/VISTA-based component has been requested.
Definition: OMEdebugInfo.cpp:68
OMEstring::determineCharacterSet
void determineCharacterSet()
Definition: OMEstring.h:391
lowBit
int lowBit(OMEthread *thread, OMEtype &result, const OMEtype &arg)
Definition: OILbits.cpp:63
OMElistDirectory
OMEarray * OMElistDirectory(const OMEstring &dirName, int *errRet)
List all files within a filesystem directory.
Definition: OMEfindFile.cpp:112
io
LogMaskType_t COMPONENT_LOG_MASK() io("io_logMask", &DEFAULT_sharedMemoryVariableManager, COMPONENT_LEVEL(io, warn)|COMPONENT_LEVEL(io, error)|COMPONENT_LEVEL(io, fatal))
OMEmakeMD5hash
OMEstring * OMEmakeMD5hash(const OMEstring &message)
Compute Message Digest 5 over an OMEstring.
Definition: pkRoutines.cpp:100
OMEshareConstant
const OMEstring & OMEshareConstant(const OMEstring &stringConstant)
Definition: OMEnamespace.cpp:338
compareStrings
int compareStrings(OMEthread *thread, OMEtype &result, const OMEtype &str1, const OMEtype &str2, const OMEtype &fuzzyCompare)
Definition: OILtypeFuncs.cpp:796
OMEgzipString
OMEstring * OMEgzipString(const OMEstring &data)
Compress a string into RFC 1952 format.
Definition: OMEcompress.cpp:113
OMEmakeSessionKeyFromPublicKey
OMEstring * OMEmakeSessionKeyFromPublicKey(const OMEstring &publicKey, OMEstring &randomDataInSessionKeyOut)
Definition: pkRoutines.cpp:255
OMEstringInROM
const typedef void * OMEstringInROM
Points to immovable, read-only string data.
Definition: OMEstring.h:68
OMEloadVersion1Encodings
void OMEloadVersion1Encodings()
Definition: encodeVer1.cpp:631
OME_UINT32
@ OME_UINT32
Definition: OMEmanifests.h:96
OMEdebugMethodInvocations
#define OMEdebugMethodInvocations
Definition: OMEdebugInfo.h:18
LOG_COUT
#define LOG_COUT(lvl)
Convenience macro that uses LOG_INTO() to conditionally log a message to standard output.
Definition: logging_api.hpp:3007
OMEtype::s
class OMEstring * s
Definition: OMEbaseType.h:299
INVALID_HANDLE_VALUE
#define INVALID_HANDLE_VALUE
Definition: poll_monitor.hpp:19
decodeStringAsLength
int decodeStringAsLength(OMEthread *thread, OMEtype &result, const OMEtype &data)
Definition: OILtypeFuncs.cpp:553
selectForWrite
int selectForWrite(OMEthread *thread, OMEtype &result, const OMEtype &ioID, const OMEtype &permitPreempt)
Definition: OILio.cpp:531
OMEconnection::VISTAdomainName
OMEstring VISTAdomainName
Definition: OMEapi.h:35
makeSessionKey
int makeSessionKey(OMEthread *thread, OMEtype &result, const OMEtype &publicKey, const OMEtype &randomData)
Definition: OILcrypto.cpp:61
NONNULL_CLASS_PARAMETERS
#define NONNULL_CLASS_PARAMETERS(...)
Mark a function as never returning a null pointer.
Definition: compiler_hints.h:337
priorIndex
int priorIndex(OMEthread *thread, OMEtype &result, const OMEtype &array, const OMEtype &subscript)
Definition: OILtypeFuncs.cpp:416
OMEticksSinceBoot
int64_t OMEticksSinceBoot()
Obtain the number of CPU ticks since boot of local FARGOS/VISTA Object Management Environment process...
Definition: OMEprocInfo.cpp:103
OMEapi::~OMEapi
~OMEapi()
Definition: OMEapi.cpp:742
OMEoidID::classVersionID
uint32_t classVersionID
Definition: OMEoid.h:29
OMEobjACL.h
IS_PATH_SEP
#define IS_PATH_SEP(c)
Definition: OILhttpFuncs.cpp:131
FILE_TYPE_LOCALIZED_V1
#define FILE_TYPE_LOCALIZED_V1
Definition: OMElicense.cpp:19
OMEdecryptString
int OMEdecryptString(int useCipher, int useKey, const OMEstring &input, OMEstring &result)
Definition: aesCover.cpp:179
OMEgunzipString
OMEstring * OMEgunzipString(const OMEstring &data)
Uncompress a string in RFC 1592 format.
Definition: OMEcompress.cpp:227
OMEgetLicenseAttribute
OMEtype * OMEgetLicenseAttribute(const OMEstring &attrName, OMEstring *retFileName=0)
Definition: OMElicense.cpp:521
freeCipher
int freeCipher(OMEthread *thread, OMEtype &result, const OMEtype &cipherData)
Definition: OILcrypto.cpp:137
parseXML
int parseXML(OMEthread *thread, OMEtype &result, const OMEtype &data)
Definition: OILxmlParse.cpp:228
OMEtype::i
int32_t i
Definition: OMEbaseType.h:285
OMEtype::array
class OMEarray * array
Definition: OMEbaseType.h:294
_RECEIVE_FROM_PEER
#define _RECEIVE_FROM_PEER(v)
Definition: OMEapi.cpp:39
OMEstring::truncateToLength
void truncateToLength(size_t newLen)
Definition: OMEstring.h:531
power
int power(OMEthread *thread, OMEtype &result, const OMEtype &arg, const OMEtype &arg2)
Definition: OILmath.cpp:293
OMEapi::importInvocation
int importInvocation(OMEtype &methodName, OMEtype &argv, OMEtype *fromObj=nullptr, OMEtype *destObj=nullptr, OMEtype *context=nullptr, OMEtype *user=nullptr)
Receives a message from a remote object that is accessible via the set of interconnected FARGOS/VISTA...
Definition: OMEapi.cpp:795
openURL
int openURL(OMEthread *thread, OMEtype &result, const OMEtype &url)
Definition: OILio.cpp:87
OMEthread::releaseThread
OMEthread * releaseThread()
Definition: OMEthread.cpp:1126
OMEtype::nlm
class OMEnlm * nlm
Definition: OMEbaseType.h:301
OMEgetInterfaces
OME_DLL_EXPORT int OMEgetInterfaces(OMEtype &result)
Definition: OMEifList.cpp:290
OME_IO_RAW
#define OME_IO_RAW
Definition: OMEmanifests.h:132
OMEthread::sourceFileName
const char * sourceFileName
Definition: OMEthread.h:84
getLocalAddress
int getLocalAddress(OMEthread *thread, OMEtype &result, const OMEtype &ioID)
Definition: OILio.cpp:583
stringToNumber
int stringToNumber(OMEthread *thread, OMEtype &result, const OMEtype &str, const OMEtype &desiredType)
Definition: OILtypeFuncs.cpp:308
ntohs
#define ntohs(x)
Definition: tmp.o.cpp:3103
exactTypeOf
int exactTypeOf(OMEthread *thread, OMEtype &result, const OMEtype &arg)
Definition: OILtypeFuncs.cpp:151
DEFAULT_MAX_READ_BUFFER
#define DEFAULT_MAX_READ_BUFFER
Definition: OILio.cpp:33
getSystemInfo
int getSystemInfo(OMEthread *thread, OMEtype &result)
Definition: OILtime.cpp:31
OMEthread::suspendThread
void suspendThread()
Definition: OMEthread.cpp:1086
makeAsHexString
int makeAsHexString(OMEthread *thread, OMEtype &result, const OMEtype &args)
Definition: OILdebug.cpp:328
getLocalizedData
int getLocalizedData(OMEthread *thread, OMEtype &result, OMEtype &fileName, OMEtype &attrName)
Definition: OILcrypto.cpp:259
OMEstring::midchar
unsigned char midchar(size_t offset) const
Definition: OMEstring.h:516
OME_CRITICAL_SECTION_IO_TABLE
@ OME_CRITICAL_SECTION_IO_TABLE
Definition: OMEmutex.h:46
OMEset::isEmpty
uint32_t isEmpty() const OME_ALWAYS_INLINE
Definition: OMEset.h:218
OMEiso8601Date
OME_DLL_EXPORT int OMEiso8601Date(OMEtype &result, const OMEtype &argData)
Format an OME absolute time reference as a date and time in ISO 8601 format.
Definition: OMEtime.cpp:273
OMEarray::priorIndex
ARRAY_SUBSCRIPT_t priorIndex(const uint32_t currentSubscript) const
Definition: OMEarray.h:232
arrayToSet
int arrayToSet(OMEthread *thread, OMEtype &result, const OMEtype &arg)
Definition: OILtypeFuncs.cpp:571
OMEconnection::sendMessage
int sendMessage(const OMEtype &dest, int *errRet=nullptr)
Definition: OMEapi.cpp:603
OMEconnection::userInfo
OMEstring userInfo
Definition: OMEapi.h:34
makeUnique
int makeUnique(OMEthread *thread, OMEtype &result, const OMEtype &arg)
Definition: OILdebug.cpp:357
LogManager::STDOUT_LogManager
static LogManager * STDOUT_LogManager
Created automatically.
Definition: logging_api.hpp:617
OMEnlm
Public interface to an OME Native Language Message.
Definition: OMEnlm.h:98
freeXMLparser
int freeXMLparser(OMEthread *thread, OMEtype &result, const OMEtype &parserID)
Definition: OILxmlParse.cpp:158
OMEopenURL
OMEioDescriptor * OMEopenURL(const OMEstring &url, int *errCode)
Open an I/O descriptor based on an URL.
Definition: OMEioObjects.cpp:257
OMEapi::getDescriptor
OMEioDescriptor * getDescriptor() const
Definition: OMEapi.h:207
OMEreferenceToData::totalReferences
int_fast32_t totalReferences() const OME_ALWAYS_INLINE
Get current reference total.
Definition: OMErefCount.h:141
allocNewSNMPsession
int allocNewSNMPsession(OMEthread *, OMEtype &result, const OMEtype &arg1)
Definition: OILsnmp.cpp:28
OMEmakeSHA256hash
OMEstring * OMEmakeSHA256hash(const OMEstring &message)
Compute Secure Hash Algorithm 256 over an OMEstring.
Definition: sha256.cpp:169
OME_size_t
#define OME_size_t
Definition: OMEmanifests.h:17
srcID
const char srcID[]
Definition: catSym.c:17
parseXMLusingParser
int parseXMLusingParser(OMEthread *thread, OMEtype &result, const OMEtype &parserID, const OMEtype &data, const OMEtype &doneFlag)
Definition: OILxmlParse.cpp:182
relativePathToAbsolute
int relativePathToAbsolute(OMEthread *thread, OMEtype &result, const OMEtype &currentDir, const OMEtype &path)
Definition: OILhttpFuncs.cpp:186
OME_STRING
@ OME_STRING
Definition: OMEmanifests.h:85
nextIndex
int nextIndex(OMEthread *thread, OMEtype &result, const OMEtype &array, const OMEtype &subscript)
Definition: OILtypeFuncs.cpp:396
CONTEXT_SUBSCRIPT
const int CONTEXT_SUBSCRIPT
Definition: OMEapi.cpp:24
OMEstring::noteCharacterSet
void noteCharacterSet(uint_fast8_t c)
Definition: OMEstring.h:386
findSubstring
ssize_t findSubstring(const unsigned char *source, size_t srcLen, const unsigned char *subString, size_t subLen)
Searches for a substring within a buffer.
Definition: OMEstring.cpp:60
OMEconnection::freeEncryptionResources
void freeEncryptionResources()
Definition: OMEapi.cpp:89
expandSSIvars
int expandSSIvars(OMEthread *thread, OMEtype &result, const OMEtype &cmdElements, const OMEtype &env)
Definition: OILhttpFuncs.cpp:396
OMEassoc::getKeyForIndex
const OMEstring & getKeyForIndex(const ASSOC_HASH_KEY_t i) const
Definition: OMEassoc.h:198
sortArray
int sortArray(OMEthread *thread, OMEtype &result, const OMEtype &arg, const OMEtype &mode)
Definition: OILtypeFuncs.cpp:755
OME_INT
@ OME_INT
Definition: OMEmanifests.h:80
OMEapi::getPeerObject
int getPeerObject(OMEtype &obj)
Definition: OMEapi.h:181
parseHTTPuriData
int parseHTTPuriData(OMEthread *thread, OMEtype &result, const OMEtype &data, const OMEtype &defaultScheme, const OMEtype &defaultAuthority, const OMEtype &defaultContext)
Definition: OILhttpFuncs.cpp:14
OMEconvertLocalRelativeTimeToAbsolute
OME_DLL_EXPORT int OMEconvertLocalRelativeTimeToAbsolute(OMEtype &result, uint32_t tArg, int asGMT)
Convert a local relative time to an OME absolute time reference.
Definition: OMEtime.cpp:89
sendDatagram
int sendDatagram(OMEthread *thread, OMEtype &result, const OMEtype &ioID, const OMEtype &dataToSend, const OMEtype &dest)
Definition: OILio.cpp:375
OMEdecryptSessionKeyWithPrivateKey
OMEstring * OMEdecryptSessionKeyWithPrivateKey(const OMEstring &privateKey, const OMEstring &data)
Definition: pkRoutines.cpp:296
INIT_DECLARE_OILdebug
OME_DLL_EXPORT void INIT_DECLARE_OILdebug()
Definition: OILdebug.cpp:424
ARG_IS_INT32
#define ARG_IS_INT32(x)
Definition: OILcrypto.cpp:5
OMEthread::generateException
OME_FAST_CALL int generateException(uint_fast32_t argc, const OMEarray &argv) const
Definition: OMEthread.cpp:1197
OMEmakePrivateKey
OMEstring * OMEmakePrivateKey(const OMEstring &secretPhrase)
Definition: pkRoutines.cpp:156
OMEioDescriptor::selectForRead
virtual OMEevent * selectForRead(OMEeventCallbackFP func, OMEthread *t=nullptr)=0
OMEset
Implements an ordered list of OMEtype elements.
Definition: OMEset.h:64
OMEdefineNewEncryptKey
int OMEdefineNewEncryptKey(const OMEstring &key)
Definition: aesCover.cpp:95
OMEoidStorage
Reference-counted link to OMEoidStorageBase object.
Definition: OMEoid.h:79
makePublicKeyPair
int makePublicKeyPair(OMEthread *thread, OMEtype &result, const OMEtype &secret)
Definition: OILcrypto.cpp:45
safeURI
int safeURI(OMEthread *thread, OMEtype &result, const OMEtype &arg)
Definition: OILmimeDecode.cpp:25
OMEthread::sourceLineNumber
int sourceLineNumber
Definition: OMEthread.h:83
getTicksSinceBoot
int getTicksSinceBoot(OMEthread *thread, OMEtype &result)
Definition: OILtime.cpp:94
OMEdefineNewDecryptKey
int OMEdefineNewDecryptKey(const OMEstring &key)
Definition: aesCover.cpp:103
OMEcrypto.h
midchar
int midchar(OMEthread *thread, OMEtype &result, const OMEtype &src, const OMEtype &start)
Definition: OILtypeFuncs.cpp:58
ARG_IS_INT32
#define ARG_IS_INT32(x)
Definition: OILmath.cpp:6
OMEtype::encode
int encode(class OMEencodeBuffer *) const
Add the encoding of an OMEtype into an OMEencodeBuffer.
Definition: OMEencode.cpp:189
getFileInfo
int getFileInfo(OMEthread *thread, OMEtype &result, const OMEtype &filePath)
Definition: OILio.cpp:639
skipAndOutputSetToStream
int skipAndOutputSetToStream(STREAMTYPE &s, OMEset &args, int skipCount=0)
Definition: OILdebug.cpp:23
FORWARD_CMD
const int FORWARD_CMD
Definition: OMEapi.cpp:21
logarithm10
int logarithm10(OMEthread *thread, OMEtype &result, const OMEtype &arg)
Definition: OILmath.cpp:272
OMEapi
The standard mechanism for attaching external processes to a FARGOS/VISTA Object Management Environme...
Definition: OMEapi.h:83
OMEnlm::getMessageInfo
void getMessageInfo(OMEarray &list) const
Definition: OMEnlm.h:178
deleteIndex
int deleteIndex(OMEthread *thread, OMEtype &result, const OMEtype &array, const OMEtype &subscript)
Definition: OILtypeFuncs.cpp:452
OME_NIL
@ OME_NIL
Definition: OMEmanifests.h:78
OME_DEFAULT_CHARSET
@ OME_DEFAULT_CHARSET
Definition: OMEstring.h:35
display
int display(OMEthread *thread, OMEtype &result, const OMEtype &args)
Definition: OILdebug.cpp:112
OME_EXPECT_TRUE
#define OME_EXPECT_TRUE(expr)
Annotation macro for conditional expression expected to be true.
Definition: compiler_hints.h:541
OMEapi::invokeMethod
int invokeMethod(const OMEtype &dest, const OMEtype &methodName, const OMEtype &args, const OMEtype *fromObj=nullptr, const OMEassoc *context=nullptr)
Definition: OMEapi.cpp:756
OMEconnection::getDescriptor
OMEioDescriptor * getDescriptor() const
Definition: OMEapi.h:65
stringToArrayOfTokens
OME_FAST_CALL int stringToArrayOfTokens(OMEtype &result, const OMEstring &source, const char *delimeterList=nullptr, const int convertFlag=0)
Tokenizes a string and saves the parsed tokens as individual elements of an array.
Definition: utils.cpp:139
squareRoot
int squareRoot(OMEthread *thread, OMEtype &result, const OMEtype &arg)
Definition: OILmath.cpp:323
OMEtype::f
float f
Definition: OMEbaseType.h:287
getLocalRelativeTime
int getLocalRelativeTime(OMEthread *thread, OMEtype &result)
Definition: OILtime.cpp:76
sleepForSeconds
int sleepForSeconds(OMEthread *thread, OMEtype &result, const OMEtype &t)
Definition: OILio.cpp:70
OMEconnection::getHandle
int getHandle() const
Definition: OMEapi.h:69
getRelativeMilliseconds
int getRelativeMilliseconds(OMEthread *thread, OMEtype &result)
Definition: OILtime.cpp:85
setDebugMask
int setDebugMask(OMEthread *thread, OMEtype &result, const OMEtype &mask)
Definition: OILdebug.cpp:414
OMEtypes_t
OMEtypes_t
Definition: OMEmanifests.h:77
OMEapi::userInfo
OMEstring userInfo
Definition: OMEapi.h:90
OMEfreeDecryptionKey
int OMEfreeDecryptionKey(int useKey)
Definition: aesCover.cpp:119
OMEstring::getCharacterSet
uint_fast8_t getCharacterSet() const
Definition: OMEstring.h:396
nlmInfo
int nlmInfo(OMEthread *thread, OMEtype &result, const OMEtype &arg)
Definition: OILtypeFuncs.cpp:842
pathComponentsToString
int pathComponentsToString(OMEthread *thread, OMEtype &result, const OMEtype &elements, const OMEtype &startIndex, const OMEtype &stopIndex)
Definition: OILhttpFuncs.cpp:237
OMEdebugBadParameter
#define OMEdebugBadParameter
Definition: OMEdebugInfo.h:27
OMEconnection::authenticationData
OMEtype authenticationData
Definition: OMEapi.h:25
writeBytes
int writeBytes(OMEthread *thread, OMEtype &result, const OMEtype &ioID, const OMEtype &dataToSend)
Definition: OILio.cpp:346
logarithm
int logarithm(OMEthread *thread, OMEtype &result, const OMEtype &arg)
Definition: OILmath.cpp:251
ARG_IS_INT32
#define ARG_IS_INT32(x)
Definition: OILxmlParse.cpp:7
setToArray
int setToArray(OMEthread *thread, OMEtype &result, const OMEtype &arg)
Definition: OILtypeFuncs.cpp:599
OMEhexToBinary
size_t OMEhexToBinary(const unsigned char *src, size_t srcLen, unsigned char *dest, size_t destLen)
Convert hexadecimal text to binary.
Definition: OMEbase64.cpp:225
reverseString
int reverseString(OMEthread *thread, OMEtype &result, const OMEtype &arg)
Definition: OILtypeFuncs.cpp:100
OMEapi::OMEapi
OMEapi(const OMEassoc &acl, const char *dest) NONNULL_CLASS_PARAMETERS(3)
Definition: OMEapi.cpp:725
makeRandomKey
int makeRandomKey(OMEthread *thread, OMEtype &result, const OMEtype &desiredBits)
Definition: OILcrypto.cpp:245
OMEbase64ToBinary
OMEstring * OMEbase64ToBinary(const OMEstring &source)
Convert base-64 encoded text to its binary representation.
Definition: OMEbase64.cpp:156
OME_UINT64
@ OME_UINT64
Definition: OMEmanifests.h:97
USERINFO_SUBSCRIPT
const int USERINFO_SUBSCRIPT
Definition: OMEapi.cpp:25
MAX_IO_VECTORS
#define MAX_IO_VECTORS
Definition: OILio.cpp:30
app
LogMaskType_t COMPONENT_LOG_MASK() app("app_logMask", &DEFAULT_sharedMemoryVariableManager, COMPONENT_LEVEL(app, defaultMask))
selectForRead
int selectForRead(OMEthread *thread, OMEtype &result, const OMEtype &ioID, const OMEtype &permitPreempt)
Definition: OILio.cpp:504
OMEassoc::ASSOC_HASH_KEY_t
OMEassocStorage::ASSOC_HASH_KEY_t ASSOC_HASH_KEY_t
Definition: OMEassoc.h:125
OME_INIT_VEC_LEN_IN_HEX_BYTES
@ OME_INIT_VEC_LEN_IN_HEX_BYTES
Definition: OMEcrypto.h:14
seekToOffset
int seekToOffset(OMEthread *thread, OMEtype &result, const OMEtype &ioID, const OMEtype &offset)
Definition: OILio.cpp:273
htons
#define htons(x)
Definition: tmp.o.cpp:3100
OMEtype.h
OME fundamental type implementation.
LogMessageRecord
Log message record used to remember output format and argument values, potentially deferring formatti...
Definition: logging_api.hpp:1022
arcTangent
int arcTangent(OMEthread *thread, OMEtype &result, const OMEtype &arg)
Definition: OILmath.cpp:115
NOTE_DEFAULT_NLM
#define NOTE_DEFAULT_NLM(s)
Declare the default message within a DEFINE_NLM_MESSAGE() block.
Definition: OMEdebugInfo.h:314
parseAttributeValuePairs
int parseAttributeValuePairs(OMEthread *thread, OMEtype &result, const OMEtype &data, const OMEtype &desiredType, const OMEtype &whiteSpace, const OMEtype &equalsSign)
Definition: OILmimeDecode.cpp:98
OMEioVector
Equivalent of iov structure.
Definition: OMEioObjects.h:18
OMEcompressString
OMEstring * OMEcompressString(const OMEstring &data)
Compress a string.
Definition: OMEcompress.cpp:28
OMEstring::midstr
OMEstring * midstr(size_t offset, size_t len) const
Definition: OMEstring.h:521
COMPONENT_LOG_MASK
#define COMPONENT_LOG_MASK(component)
Construct variable name for a component's active log mask.
Definition: logging_api.hpp:2214
typeOf
int typeOf(OMEthread *thread, OMEtype &result, const OMEtype &arg)
Definition: OILtypeFuncs.cpp:127
parseHTTPformData
int parseHTTPformData(OMEthread *thread, OMEtype &result, const OMEtype &data, const OMEtype &desiredType)
Definition: OILmimeDecode.cpp:36
ARGV_SUBSCRIPT
const int ARGV_SUBSCRIPT
Definition: OMEapi.cpp:23
getKeyForIndex
int getKeyForIndex(OMEthread *thread, OMEtype &result, const OMEtype &array, const OMEtype &subscript)
Definition: OILtypeFuncs.cpp:437
readBytes
int readBytes(OMEthread *thread, OMEtype &result, const OMEtype &ioID, const OMEtype &bytesToRead, const OMEtype &bufferSize)
Definition: OILio.cpp:186
encodeLengthAsString
int encodeLengthAsString(OMEthread *thread, OMEtype &result, const OMEtype &len)
Definition: OILtypeFuncs.cpp:534
findSubstringAfter
int findSubstringAfter(OMEthread *thread, OMEtype &result, const OMEtype &source, const OMEtype &substring, const OMEtype &offset)
Definition: OILtypeFuncs.cpp:222
convertCase
int convertCase(OMEthread *thread, OMEtype &result, const OMEtype &, const OMEtype &)
Definition: OILtypeFuncs.cpp:780
mergeBits
uint32_t mergeBits(uint32_t source, int srcOffset, int srcLen, uint32_t original, int destOffset) OME_CONST_FUNCTION
Definition: OILbits.cpp:80
cosine
int cosine(OMEthread *thread, OMEtype &result, const OMEtype &arg)
Definition: OILmath.cpp:10
OMEtype::ui
uint32_t ui
Definition: OMEbaseType.h:286
rfc1123Date
int rfc1123Date(OMEthread *thread, OMEtype &result, const OMEtype &argData)
Definition: OILtime.cpp:103
OMEconnection::decryptCipherID
int decryptCipherID
Definition: OMEapi.h:32
precomputedCosine
int precomputedCosine(OMEthread *thread, OMEtype &result, const OMEtype &arg)
Definition: OILmath.cpp:548
timeDifference
int timeDifference(OMEthread *thread, OMEtype &result, const OMEtype &time1, const OMEtype &time2)
Definition: OILtime.cpp:131
listDirectory
int listDirectory(OMEthread *thread, OMEtype &result, const OMEtype &dirName)
Definition: OILio.cpp:933
OMEstring::length
size_t length() const
Definition: OMEstring.h:401
OMEconvertAbsoluteToLocalRelativeTime
OME_DLL_EXPORT uint32_t OMEconvertAbsoluteToLocalRelativeTime(const OMEtype &tData)
Convert an OME absolute time reference to a local relative time.
Definition: OMEtime.cpp:152
OMEconvertString
OME_FAST_CALL void OMEconvertString(OMEtype &result, OMEstring *source, const uint_fast16_t forceBase=10, const bool discard=false)
Converts text strings into numeric values.
Definition: utils.cpp:24
precomputedSine
int precomputedSine(OMEthread *thread, OMEtype &result, const OMEtype &arg)
Definition: OILmath.cpp:533
indexExists
int indexExists(OMEthread *thread, OMEtype &result, const OMEtype &array, const OMEtype &subscript)
Definition: OILtypeFuncs.cpp:369
hyperbolicSine
int hyperbolicSine(OMEthread *thread, OMEtype &result, const OMEtype &arg)
Definition: OILmath.cpp:187
DEFINE_NLM_MESSAGE
#define DEFINE_NLM_MESSAGE(Lvl, MessID, AppName)
Define an Native Language Message.
Definition: OMEdebugInfo.h:318
OMEcurrentProcessInfo
OMEthisProcessInfo OMEcurrentProcessInfo
Automatic instantiation of OMEthisProcessInfo. When properly linked, the C++ static constructor mecha...
Definition: OMEprocInfo.cpp:217
substituteEnvironmentVariables
int substituteEnvironmentVariables(OMEthread *thread, OMEtype &result, const OMEtype &line, const OMEtype &extraVariables)
Definition: OILtypeFuncs.cpp:682
OME_USED
const char srcID[] OME_USED
Definition: tick_time.cpp:24
flags
int flags
Definition: ethers.c:41
convertURIescapes
int convertURIescapes(OMEthread *thread, OMEtype &result, const OMEtype &arg)
Definition: OILmimeDecode.cpp:14
OMEoidID::classHashIndex
uint32_t classHashIndex
Definition: OMEoid.h:30
alwaysAllow
int alwaysAllow(OMEthread *thread, OMEtype &result, const OMEtype &methodName)
Definition: OILallow.cpp:20
OMEstring::outputOnStreamAsHex
STREAMTYPE & outputOnStreamAsHex(STREAMTYPE &outputStream, int_fast16_t indent=0, bool dense=false) const
Output the contents of an OMEstring object to an output stream as a collection of hexadecimal charact...
Definition: OMEstring.h:564
midstr
int midstr(OMEthread *thread, OMEtype &result, const OMEtype &src, const OMEtype &start, const OMEtype &len)
Definition: OILtypeFuncs.cpp:31
OMEconnection::remoteOID
OMEtype remoteOID
Definition: OMEapi.h:27
OMEconnection::OMEconnection
OMEconnection(const OMEoid &objId, const OMEstring &destination, const OMEtype &authentication)
Definition: OMEapi.cpp:47
OMEobjectInstance
Subclass of OMEobject that provides access to a local object.
Definition: OMEobject.h:135
OMEconnection
establishes and maintains a connection with a FARGOS/VISTA Object Management Environment.
Definition: OMEapi.h:20
orderSubscripts
int orderSubscripts(OMEthread *thread, OMEtype &result, const OMEtype &arg, const OMEtype &mode)
Definition: OILtypeFuncs.cpp:746
OMEarray::elementCount
uint_fast32_t elementCount() const OME_ALWAYS_INLINE
Definition: OMEarray.h:247
findLastSubstring
int findLastSubstring(OMEthread *thread, OMEtype &result, const OMEtype &source, const OMEtype &substring)
Definition: OILtypeFuncs.cpp:245
OMEaddEventToQueue
void OMEaddEventToQueue(OMEevent *event)
Definition: OMEevent.cpp:43
initializeCipher
int initializeCipher(OMEthread *thread, OMEtype &result, const OMEtype &secret, const OMEtype &dir, const OMEtype &initVec)
Definition: OILcrypto.cpp:103
tokenizeString
int tokenizeString(OMEthread *thread, OMEtype &result, const OMEtype &src, const OMEtype &delimString, const OMEtype &convFlag)
Definition: OILtypeFuncs.cpp:286
subscriptsInOrder
OME_FAST_CALL int subscriptsInOrder(OMEtype &result, const OMEtype &list, uint_fast8_t descending=OME_FLAG_SORT_ASCENDING)
Examines an array (either sparse or associative) and returns a list of subscripts that allow the elem...
Definition: utils.cpp:333
OME_CONST_FUNCTION
#define OME_CONST_FUNCTION
Mark as an idempotent function that only accesses arguments – no global data.
Definition: compiler_hints.h:390
hyperbolicTangent
int hyperbolicTangent(OMEthread *thread, OMEtype &result, const OMEtype &arg)
Definition: OILmath.cpp:208
allow
int allow(OMEthread *thread, OMEtype &result, const OMEtype &methodName)
Definition: OILallow.cpp:5
OME_TypeCheck::is32BitInteger
static constexpr bool is32BitInteger(uint32_t t) OME_CONST_FUNCTION
Definition: OMEbaseType.h:92
OMEtype::getUniqueReference
void getUniqueReference() OME_ALWAYS_INLINE
Definition: OMEbaseType.h:460
OMEoidID::birthplace
OMEentityID birthplace
Definition: OMEoid.h:31
OMEfreeCipher
int OMEfreeCipher(int useCipher)
Definition: aesCover.cpp:56
calculateStringLength
int calculateStringLength(OMEthread *thread, OMEtype &result, const OMEtype &args)
Definition: OILdebug.cpp:388
OMEgetUserName
OMEstring * OMEgetUserName()
Return the name of the user associated with the process.
Definition: OMEprocInfo.cpp:285
findLastSubstringBefore
int findLastSubstringBefore(OMEthread *thread, OMEtype &result, const OMEtype &source, const OMEtype &substring, const OMEtype &offset)
Definition: OILtypeFuncs.cpp:263
snmpSend
int snmpSend(OMEthread *thread, OMEtype &result, const OMEtype &sessionID, const OMEtype &pdu)
Definition: OILsnmp.cpp:54
OME_SET
@ OME_SET
Definition: OMEmanifests.h:89
NEXT_NLM_PARAM
#define NEXT_NLM_PARAM
Define value for next positional parameter.
Definition: OMEdebugInfo.h:337
OMEarray::isEmpty
bool isEmpty() const OME_ALWAYS_INLINE
Definition: OMEarray.h:252
ntohl
#define ntohl(x)
Definition: tmp.o.cpp:3101
OMEapi::establishConnection
int establishConnection(OMEtype &authentication)
Definition: OMEapi.cpp:748
OMEdefOIL2func
Record to define the implementation of an OIL2 function.
Definition: OMEthread.h:287
decodeMIMEdata
int decodeMIMEdata(OMEthread *thread, OMEtype &result, const OMEtype &mimeTypeName, const OMEtype &data)
Definition: OILmimeDecode.cpp:467
OMEioDescriptor::ioHandle
uint64_t ioHandle
Definition: OMEioObjects.h:36
OMEthisProcessInfo::id
OMEentityID id
Definition: OMEprocInfo.h:68
OMEendCriticalSection
void OMEendCriticalSection(eOMEcriticalSectionLabel regionID)
Definition: OMEmutex.cpp:236
OMEtransportToSockaddr
int OMEtransportToSockaddr(sockBigEnough *sock, uint_fast16_t *sockLen, int *sockMode, const char *url, uint_fast16_t urlLen)
Convert textual transport address into sockaddr structure.
Definition: OMEaddr.cpp:702
errno
int errno
Definition: ethers.c:41
skipAndOutputSetToStreamAsHex
int skipAndOutputSetToStreamAsHex(STREAMTYPE &s, OMEset &args, int skipCount=0, int dense=0)
Definition: OILdebug.cpp:61
releaseSNMPsession
void releaseSNMPsession(uint32_t sessionID)
Definition: OILsnmp.cpp:23
OME_EXPECT_FALSE
#define OME_EXPECT_FALSE(expr)
Annotation macro for conditional expression expected to be false.
Definition: compiler_hints.h:540
removeDirectory
int removeDirectory(OMEthread *thread, OMEtype &result, const OMEtype &fileName)
Definition: OILio.cpp:853
OMEarray::nextIndex
ARRAY_SUBSCRIPT_t nextIndex(const uint32_t currentSubscript) const
Definition: OMEarray.h:217
OMEconnection::establishConnection
int establishConnection()
Definition: OMEapi.cpp:533
parsePathComponents
int parsePathComponents(OMEthread *thread, OMEtype &result, const OMEtype &path)
Definition: OILhttpFuncs.cpp:133
_SEND_TO_PEER
#define _SEND_TO_PEER(v)
Definition: OMEapi.cpp:37
snmpGetResponse
int snmpGetResponse(OMEthread *thread, OMEtype &result)
Definition: OILsnmp.cpp:61
getSNMPsession
struct snmp_session * getSNMPsession(const uint32_t sessionID, const bool deleteToo)
Definition: OILsnmp.cpp:18
OMEioDescriptor::writeVectorOfBytes
virtual int writeVectorOfBytes(const OMEioVector *v, uint_fast16_t elementCount, size_t *actualBytes, int *errRet, size_t skipBytes=0)
Definition: OMEioObjects.cpp:154
OMEconnection::destination
OMEstring destination
Definition: OMEapi.h:23
OMEtype::outputOnStream
STREAMTYPE & outputOnStream(STREAMTYPE &outputOnStream, int_fast16_t indent=0, uint8_t includeTypePrefix=OUTPUT_TYPENAME) const
Definition: OMEoutputOnStream.h:311
OMEstring::lastSubstr
ssize_t lastSubstr(const OMEstring &sub, size_t startOffset=~static_cast< size_t >(0)) const
Definition: OMEstring.h:495
makeDirectory
int makeDirectory(OMEthread *thread, OMEtype &result, const OMEtype &dirName)
Definition: OILio.cpp:909
encryptMessage
int encryptMessage(OMEthread *thread, OMEtype &result, const OMEtype &cipherData, const OMEtype &message)
Definition: OILcrypto.cpp:151
highBit
int highBit(OMEthread *thread, OMEtype &result, const OMEtype &arg)
Definition: OILbits.cpp:33
OME_UINT8
@ OME_UINT8
Definition: OMEmanifests.h:99
ARG_IS_INT32
#define ARG_IS_INT32(x)
Definition: OILio.cpp:35
OME_FAST_CALL
#define OME_FAST_CALL
Definition: compiler_hints.h:468
decodeFirstElement
int decodeFirstElement(OMEthread *thread, OMEtype &result, const OMEtype &data)
Definition: OILencode.cpp:79
OMEgetSigningFile
OMEtype * OMEgetSigningFile(const OMEstring &secret, const OMEstring &logicalDomain, bool isPublic=false)
Definition: OMElicense.cpp:648
OMEevent
Base class for events within the FARGOS/VISTA Object Management Environment.
Definition: OMEevent.h:22
elementCount
int elementCount(OMEthread *thread, OMEtype &result, const OMEtype &arg)
Definition: OILtypeFuncs.cpp:168
INIT_DECLARE_OILbits
OME_DLL_EXPORT void INIT_DECLARE_OILbits()
Definition: OILbits.cpp:264
getErrorStatus
int getErrorStatus(OMEthread *thread, OMEtype &result, const OMEtype &ioID)
Definition: OILio.cpp:623
OMEapi::setUserInfo
void setUserInfo()
OMEconnection::receiveMessage
int receiveMessage(OMEtype &result, int *errRet=nullptr)
Definition: OMEapi.cpp:688
getIOhandle
int getIOhandle(OMEthread *thread, OMEtype &result, const OMEtype &ioID)
Definition: OILio.cpp:135
OME_TypeCheck::isContainer
static constexpr bool isContainer(uint32_t t) OME_CONST_FUNCTION
Definition: OMEbaseType.h:109
OMEdebugEvents
#define OMEdebugEvents
Definition: OMEdebugInfo.h:23
OMEstring::printableCopy
OMEstring * printableCopy() const
Definition: OMEstring.cpp:751
malloc
char * malloc(unsigned int bytes)
Definition: test_malloc.c:441
_STD
#define _STD
Definition: OMEmanifests.h:146
OMEset::nextElement
OMEtype * nextElement()
Iterate over a set by retrieving the next element.
Definition: OMEset.cpp:280
OMEdebugInfo.h
OME debug and profiling interfaces.
OMErfc1123Date
OME_DLL_EXPORT int OMErfc1123Date(OMEtype &result, const OMEtype &argData)
Format an OME absolute time reference as a data and time in RFC 1123 format.
Definition: OMEtime.cpp:218
mergeArrays
int mergeArrays(OMEthread *thread, OMEtype &result, const OMEtype &args)
Definition: OILtypeFuncs.cpp:476
convertLocalRelativeTimeToAbsolute
int convertLocalRelativeTimeToAbsolute(OMEthread *thread, OMEtype &result, const OMEtype &tArg, const OMEtype &asGMT)
Definition: OILtime.cpp:55
OME_DLL_EXPORT
#define OME_DLL_EXPORT
Definition: compiler_hints.h:464
OMEbinaryToBase64
OMEstring * OMEbinaryToBase64(const OMEstring &source, bool breakIntoLines)
Convert binary data to base64 text encoding.
Definition: OMEbase64.cpp:112
OMEarray
Implements sparse array of OMEtype elements.
Definition: OMEarray.h:75
OMEthread
Public interface to an OME thread.
Definition: OMEthread.h:60
OME_IO_DATAGRAM
#define OME_IO_DATAGRAM
Definition: OMEmanifests.h:131
LOG_ENDLINE
#define LOG_ENDLINE
Closing clause for text line output using << operators.
Definition: logging_api.hpp:2956
OMEoid
Public interface to an OME Object Identifier.
Definition: OMEoid.h:196
getkerninfo
int getkerninfo(int, void *, int *, int32long64_t)
OMEthread::setAsPreemptable
void setAsPreemptable()
Definition: OMEthread.cpp:450
OME_ANY
@ OME_ANY
Definition: OMEmanifests.h:93
OMEapi::makeACL
static OMEassoc * makeACL(const OMEstring &userName)
Definition: OMEapi.cpp:718
OMEmakeRandomKey
OMEstring * OMEmakeRandomKey(int32_t bits=1024)
Generate a random sequence of bits.
Definition: pkRoutines.cpp:46
OMEconnection::encodeVersion
int encodeVersion
Definition: OMEapi.h:29
OMEtype::type
uint32_t type
Definition: OMEbaseType.h:304
OME_DEFAULT_COMPLEX_OUTPUT_MODE
@ OME_DEFAULT_COMPLEX_OUTPUT_MODE
Definition: OMEmanifests.h:116
OME_IO_CONNECT
#define OME_IO_CONNECT
Definition: OMEmanifests.h:125
getSystemInfoAttribute
int getSystemInfoAttribute(OMEthread *thread, OMEtype &result, const OMEtype &attrName)
Definition: OILtime.cpp:39
parseMIMEheaderLines
int parseMIMEheaderLines(OMEthread *thread, OMEtype &result, const OMEtype &data)
Definition: OILmimeDecode.cpp:214
decodeMultiPart
int decodeMultiPart(OMEthread *thread, OMEtype &result, const OMEtype &mimeTypeName, const OMEtype &data)
Definition: OILmimeDecode.cpp:382
OME_IO_LISTEN
#define OME_IO_LISTEN
Definition: OMEmanifests.h:124
OMEapi::getHandle
int getHandle() const
Definition: OMEapi.h:220
OMEconnection::decodeData
OMEtype * decodeData(const OMEstring &data)
Definition: OMEapi.cpp:109
OMEstring::outputOnStream
STREAMTYPE & outputOnStream(STREAMTYPE &outputStream, int_fast16_t indent=0, uint8_t includeTypePrefix=0) const
Output an OMEstring to an output stream.
Definition: OMEstring.h:547
OMEnlm::isEmpty
bool isEmpty() const
Definition: OMEnlm.h:217
SHA1hash
int SHA1hash(OMEthread *thread, OMEtype &result, const OMEtype &message)
Definition: OILcrypto.cpp:9
createNLM
int createNLM(OMEthread *thread, OMEtype &result, const OMEtype &catName, const OMEtype &messID, const OMEtype &defaultMess, const OMEtype &args, const OMEtype &extras)
Definition: OILtypeFuncs.cpp:810
parseStringIntoSSIelements
int parseStringIntoSSIelements(OMEthread *thread, OMEtype &result, const OMEtype &data)
Definition: OILhttpFuncs.cpp:336
isEmpty
int isEmpty(OMEthread *thread, OMEtype &result, const OMEtype &arg)
Definition: OILtypeFuncs.cpp:186
substituteText
int substituteText(OMEthread *thread, OMEtype &result, const OMEtype &data, const OMEtype &replacements)
Definition: OILtypeFuncs.cpp:664
displayAsHex
int displayAsHex(OMEthread *thread, OMEtype &result, const OMEtype &args)
Definition: OILdebug.cpp:260
convertCase
int convertCase(OMEthread *thread, OMEtype &result, const OMEtype &arg, const OMEtype &toLower)
Definition: OILtypeFuncs.cpp:780
free
void free(char *block)
Definition: test_malloc.c:553
OMEoidStorageExternal
Interface to an external OME object.
Definition: OMEoid.h:415
OMEoidID::instanceIndex
uint32_t instanceIndex
Definition: OMEoid.h:28
length
int length(OMEthread *thread, OMEtype &result, const OMEtype &arg)
Definition: OILtypeFuncs.cpp:19
OMEtimeDifference
OME_DLL_EXPORT int OMEtimeDifference(const OMEtype &time1, const OMEtype &time2)
Compute difference between two OME absolute time references.
Definition: OMEtime.cpp:529
OMEassoc::elementCount
uint_fast32_t elementCount() const OME_ALWAYS_INLINE
Definition: OMEassoc.h:241
tangent
int tangent(OMEthread *thread, OMEtype &result, const OMEtype &arg)
Definition: OILmath.cpp:52
OMEbinaryToHex
OMEstring * OMEbinaryToHex(const unsigned char *srcBfr, size_t srcLen)
Convert binary data to hexadecimal characters.
Definition: OMEbase64.cpp:252
absoluteValue
int absoluteValue(OMEthread *thread, OMEtype &result, const OMEtype &arg)
Definition: OILmath.cpp:386
OME_ARRAY
@ OME_ARRAY
Definition: OMEmanifests.h:86
OME_ssize_t
#define OME_ssize_t
Definition: OMEmanifests.h:18
OMEarray::ARRAY_SUBSCRIPT_t
OMEarrayStorage::ARRAY_SUBSCRIPT_t ARRAY_SUBSCRIPT_t
Definition: OMEarray.h:90
caseInsensitiveCompare
int caseInsensitiveCompare(const OMEstring &str1, const OMEstring &str2, bool fuzzy=false)
Definition: utils.cpp:447
OMEtype::assoc
class OMEassoc * assoc
Definition: OMEbaseType.h:296
OMEtype
#define OMEtype
Definition: tmp.o.cpp:396
OMEset::resetIterator
void resetIterator()
Reset the internal iterator to the beginning of the list.
Definition: OMEset.cpp:264
OMEtype::set
class OMEset * set
Definition: OMEbaseType.h:298
convertCaseOfString
OMEstring * convertCaseOfString(const OMEstring &str, uint_fast8_t toLower=0)
Definition: utils.cpp:411
receiveDatagram
int receiveDatagram(OMEthread *thread, OMEtype &result, const OMEtype &ioID, const OMEtype &bufferSize)
Definition: OILio.cpp:296
AND_OUTPUT_NLM
#define AND_OUTPUT_NLM(o, t)
Render NLM data to an output stream.
Definition: OMEdebugInfo.h:327
getApplicationVariable
int getApplicationVariable(OMEthread *thread, OMEtype &result, const OMEtype &varName, const OMEtype &extraVars)
Definition: OILtypeFuncs.cpp:620
OUR_sockaddr_in6
#define OUR_sockaddr_in6
Definition: OMEaddr.cpp:95
SNMPerror
int SNMPerror(OMEthread *thread, OMEtype &result)
Definition: OILsnmp.cpp:67
OMEnlm::elementCount
uint_fast32_t elementCount() const
Definition: OMEnlm.h:212
htonl
#define htonl(x)
Definition: tmp.o.cpp:3098
OMEcheckResourceAccess
bool OMEcheckResourceAccess(OMEthread *thread, const OMEstring &resourceName)
Definition: OMEobjACL.cpp:475
OMEthread::threadErrorCode
OMEtype threadErrorCode
Definition: OMEthread.h:81
forceToASCII
int forceToASCII(OMEthread *thread, OMEtype &result, const OMEtype &arg)
Definition: OILtypeFuncs.cpp:113
OMEioDescriptor
Base class for open files and sockets.
Definition: OMEioObjects.h:26
LogMessageRecord::getLogManager
LogManager * getLogManager() const OME_ALWAYS_INLINE
Definition: logging_api.hpp:1244
convertRFC1123date
int convertRFC1123date(OMEthread *thread, OMEtype &result, const OMEtype &timeString)
Definition: OILtime.cpp:121
OMEassoc::deleteIndex
bool deleteIndex(const ASSOC_HASH_KEY_t i)
Definition: OMEassoc.h:203
gzipString
int gzipString(OMEthread *thread, OMEtype &result, const OMEtype &data)
Definition: OILencode.cpp:136
OMEoidID
Fundamental elements of an OME object identifier.
Definition: OMEoid.h:27
getRemoteHostKey
int getRemoteHostKey(OMEthread *thread, OMEtype &result, const OMEtype &rmtHostName, const OMEtype &logicalDomain)
Definition: OILcrypto.cpp:288
OMEapi::defaultContext
OMEassoc defaultContext
Definition: OMEapi.h:89
OMEconvertURIescapes
OMEstring * OMEconvertURIescapes(const OMEstring &arg)
Convert Uniform Resource Identifier escape sequences.
Definition: OMEbase64.cpp:314
OMEoid::getInstanceInMemory
const class OMEobject * getInstanceInMemory() const
Return object information record.
Definition: OMEoid.h:280
OMEhexDigits
const unsigned char OMEhexDigits[]
Definition: OMEstring.cpp:19
writeVectorOfBytes
int writeVectorOfBytes(OMEthread *thread, OMEtype &result, const OMEtype &ioID, const OMEtype &skipOffset, const OMEtype &dataToSend)
Definition: OILio.cpp:409
OME_ASSOC
@ OME_ASSOC
Definition: OMEmanifests.h:87
ARG_IS_INT
#define ARG_IS_INT(x)
Definition: OILtypeFuncs.cpp:13
main
int main(int argc, const char *argv[])
Definition: tick_test.cpp:5
fd
int fd
Definition: ethers.c:41
OMEmakeSafeURI
OMEstring * OMEmakeSafeURI(const OMEstring &arg)
Escape any special characters in an Uniform Resource Identifier.
Definition: OMEbase64.cpp:366
debugDisplayAsHex
int debugDisplayAsHex(OMEthread *thread, OMEtype &result, const OMEtype &args)
Definition: OILdebug.cpp:269
INIT_DECLARE_oilXMLfuncs
OME_DLL_EXPORT void INIT_DECLARE_oilXMLfuncs()
Definition: OILxmlParse.cpp:251
OMErelativeMilliseconds
int64_t OMErelativeMilliseconds()
Return a monotonically-increasing count of elapsed milliseconds.
Definition: OMEprocInfo.cpp:59
OMEioDescriptor::readBytes
virtual int readBytes(unsigned char *bfr, size_t bytes, size_t *actualBytes, int *errRet)=0
OME_INIT_VEC_LEN_IN_BITS
@ OME_INIT_VEC_LEN_IN_BITS
Definition: OMEcrypto.h:13
OME_INT32
@ OME_INT32
Definition: OMEmanifests.h:79
unlinkFile
int unlinkFile(OMEthread *thread, OMEtype &result, const OMEtype &fileName)
Definition: OILio.cpp:829
OME_INT64
@ OME_INT64
Definition: OMEmanifests.h:81
LOG_CERR
#define LOG_CERR(lvl)
Convenience macro that uses LOG_INTO() to conditionally log a message to standard error.
Definition: logging_api.hpp:3014
OMEprofileRecord::getCounters
static OMEassoc * getCounters()
Get a snapshot of all counters.
Definition: OMEdebugInfo.cpp:337
logging_api.hpp
FARGOS Logging API.
Generated: Tue Jul 28 2020 16:03:25
Support Information