Go to the documentation of this file. 1 #ifndef _OME_MANIFESTS_H
2 #define _OME_MANIFESTS_H "$Id: OMEmanifests.h 312 2020-03-21 21:25:35Z geoff $"
13 #if __SIZEOF_POINTER__ == 4
14 #define OME_size_t uint32_t
15 #define OME_ssize_t int32_t
17 #define OME_size_t uint64_t
18 #define OME_ssize_t int64_t
30 # include <sys/types.h>
32 # if (__linux__ == 1) || (__OpenBSD__ == 1)
33 typedef int16_t int16;
34 typedef u_int16_t uint16;
35 typedef int32_t int32;
36 typedef u_int32_t uint32;
37 typedef int64_t int64;
40 # if __sun__ == 1 && __SVR4 == 1
42 typedef int16_t int16;
43 typedef uint16_t uint16;
44 typedef int32_t int32;
45 typedef uint32_t uint32;
46 typedef int64_t int64;
49 # if sun == 1 && __SVR4 == 1
50 # include <sys/types.h>
52 typedef int16_t int16;
53 typedef uint16_t uint16;
54 typedef int32_t int32;
55 typedef uint32_t uint32;
56 typedef int64_t int64;
61 typedef unsigned short uint16;
63 typedef unsigned long uint32;
64 typedef __int64 int64;
71 # define __attribute__(arg)
75 # define OME_NAMESPACE OMElibrary
105 #if __cplusplus >= 201703
121 # define OME_IO_READ 1
122 # define OME_IO_WRITE 2
123 # define OME_IO_RESERVED0 4
124 # define OME_IO_LISTEN 8
125 # define OME_IO_CONNECT 16
126 # define OME_IO_CREATE 32
127 # define OME_IO_MUST_EXIST 64
128 # define OME_IO_TRUNCATE 128
129 # define OME_IO_APPEND 256
130 # define OME_IO_NONBLOCKING 512
131 # define OME_IO_DATAGRAM 1024
132 # define OME_IO_RAW 2048
133 # define OME_IO_MULTICAST 4096
143 # define _STD __STD::
157 # ifndef O_CHECK_NULL_POINTER
159 # define OME_DELETE_OBJECT(ptr) delete ptr
160 # define OME_DELETE_OBJECT_VECTOR(ptr) delete[] ptr
162 # define OME_DELETE_OBJECT(ptr) \
164 # define OME_DELETE_OBJECT_VECTOR(ptr) \
165 if (ptr) delete[] ptr
OMEstring * OMEreadLicenseFile(OMEstring *retFileName, const OMEstring &licFileName, const char *searchPath)
Definition: OMElicense.cpp:395
@ OME_ITERATOR
Definition: OMEmanifests.h:88
OMEstring * condenseIntoString(bool includeVersionID)
Serialize all OMEencodeBufferElement items into a single string.
Definition: OMEencode.cpp:75
OME process information implementation.
@ OME_NLM
Definition: OMEmanifests.h:90
Ïúíþ ð Ø ˜ ˜ __text __TEXT € __apple_names __DWARF __apple_objc __DWARF __apple_namespac__DWARF H X __apple_types __DWARF l
Definition: tmp3.o.cpp:1
@ OME_ERROR_CRYPTO_INTEGRITY2
Definition: OMEcrypto.h:85
int OMEinitNewCipher(const OMEstring &initVector)
Definition: aesCover.cpp:29
@ OME_FLOAT
Definition: OMEmanifests.h:82
@ OME_ERROR_CRYPTO_WRONG_USER
Definition: OMEcrypto.h:84
void * OMEoil2StackCreate(const OMEinvocationData *mInfo)
Creates a stack for an OIL2 method.
Definition: copyIntrp.cpp:39
@ OME_DISABLE_QUOTE_OUTPUT
Definition: OMEmanifests.h:110
OMEclass * OMEdefineNewClass(const OMEstring &nmSpaceArg, const OMEstring &classNameArg, const uint32_t verID, const uint32_t iSize, const bool unique, int *errCode, const CreateInstanceFP csRoutine, const DeleteInstanceFP dsRoutine)
Create new class entry.
Definition: OMEnamespace.cpp:198
@ OME_ERROR_CRYPTO_DECODE_FAILED
Definition: OMEcrypto.h:79
Mapping table to class implementations within a namespace.
Definition: OMEnamespace.h:18
OMEstring * OMEmakeSHA1hash(const OMEstring &message)
Compute Secure Hash Algorithm 1 over an OMEstring.
Definition: pkRoutines.cpp:83
@ OME_POINTER
Definition: OMEmanifests.h:92
uint32_t signature
Definition: OMEmethod.h:44
@ OME_UINT16
Definition: OMEmanifests.h:98
@ OME_ERROR_CRYPTO_BAD_VERSION
Definition: OMEcrypto.h:76
uint32_t invocationMode
Definition: OMEmethod.h:47
void OMEoil2StackDelete(const OMEinvocationData *mInfo, void *data)
Deletes a stack associated with an OIL2 method.
Definition: copyIntrp.cpp:51
void * data
Definition: OMEmethod.h:50
Implements associative array of OMEtype elements.
Definition: OMEassoc.h:112
@ OME_ERROR_CRYPTO_INTEGRITY1
Definition: OMEcrypto.h:78
Implements text and binary string storage.
Definition: OMEstring.h:305
OME type encoding routines.
OME_FAST_CALL OMEinvocationData * findMethodImplementation(const uint32_t signature, const OMEstring &methodName, const uint32_t indx=0) const
Definition: OMEclass.cpp:321
Buffer into which OMEtype data is encoded.
Definition: OMEencode.h:54
int OMEfreeEncryptionKey(int useKey)
Definition: aesCover.cpp:111
int setStorageDescription(const struct OMEinstanceVarDescr *desc)
Definition: OMEclass.cpp:224
bool indexExists(const uint32_t i) const
Definition: OMEarray.h:202
@ OME_ERROR_CRYPTO_INIT_FAILED
Definition: OMEcrypto.h:82
OME_FAST_CALL OMEclass * findClass(const OMEstring &name, const uint32_t verID=0) const
Definition: OMEnamespace.cpp:130
@ OME_SHA1_HASH_LEN_IN_BYTES
Definition: OMEcrypto.h:16
@ OME_LAST_TYPE_INDEX
Definition: OMEmanifests.h:101
int OMEencryptString(int useCipher, int useKey, const OMEstring &input, OMEstring &result)
Definition: aesCover.cpp:124
#define WARNING_DAYS
Definition: OMElicense.cpp:14
Fundamental ANY type for FARGOS/VISTA Object Management Environment.
Definition: OMEbaseType.h:250
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
bool indexExists(const ASSOC_HASH_KEY_t i) const
Definition: OMEassoc.h:226
@ OME_DOUBLE
Definition: OMEmanifests.h:83
OMEstring * OMEmakePublicKey(const OMEstring &privateKey)
Definition: pkRoutines.cpp:192
OMEtype_OutputFlags_t
Definition: OMEmanifests.h:104
void determineCharacterSet()
Definition: OMEstring.h:391
const OMEstring & OMEshareConstant(const OMEstring &stringConstant)
Definition: OMEnamespace.cpp:338
OMEstring * OMEmakeSessionKeyFromPublicKey(const OMEstring &publicKey, OMEstring &randomDataInSessionKeyOut)
Definition: pkRoutines.cpp:255
void OMEloadVersion1Encodings()
Definition: encodeVer1.cpp:631
Description of an OME method.
Definition: OMEmethod.h:82
@ OME_UINT32
Definition: OMEmanifests.h:96
@ OME_ERROR_CRYPTO_WRONG_HOST
Definition: OMEcrypto.h:83
class OMEstring * s
Definition: OMEbaseType.h:299
int setStorageDescription(const struct OMEinstanceVarDescr *desc)
Definition: OMEmethod.cpp:69
OMEstring hostName
Definition: OMEprocInfo.h:67
#define FILE_TYPE_LOCALIZED_V1
Definition: OMElicense.cpp:19
int OMEdecryptString(int useCipher, int useKey, const OMEstring &input, OMEstring &result)
Definition: aesCover.cpp:179
OMEtype * OMEgetLicenseAttribute(const OMEstring &attrName, OMEstring *retFileName)
Definition: OMElicense.cpp:521
int32_t i
Definition: OMEbaseType.h:285
class OMEarray * array
Definition: OMEbaseType.h:294
OME_FAST_CALL OMEmethodP findMethod(const OMEstring &methodName, const uint32_t indx=0) const
Definition: OMEclass.cpp:294
#define OME_INVOKE_OIL2_INTERPRET
Definition: OMEmethod.h:11
FARGOS/VISTA Object Management Environment class description.
Definition: OMEclass.h:24
#define OME_ERROR_NO_SUCH_CLASS
Definition: OMEerror.h:15
OMEarray localGlobals
Definition: OMEmethod.h:55
int resolveLinkages(OMEstring *missingClassName=nullptr, uint32_t *missingClassVersionID=nullptr)
Attempt to resolve inheritance tree.
Definition: OMEclass.cpp:428
void * OMEdefaultInstanceCreate(const OMEclass *cInfo)
Definition: OMEclass.cpp:79
OMEarray constantTable
Definition: OMEmethod.h:54
@ OME_ERROR_CRYPTO_DECODE_ARRAY
Definition: OMEcrypto.h:80
uint32_t anyMask
Definition: OMEmethod.h:45
const char srcID[]
Definition: catSym.c:17
@ OME_STRING
Definition: OMEmanifests.h:85
@ OME_OUTPUT_NEWLINE
Definition: OMEmanifests.h:111
@ OME_INT
Definition: OMEmanifests.h:80
OMEstring * OMEdecryptSessionKeyWithPrivateKey(const OMEstring &privateKey, const OMEstring &data)
Definition: pkRoutines.cpp:296
OMEstring * OMEmakePrivateKey(const OMEstring &secretPhrase)
Definition: pkRoutines.cpp:156
int OMEdefineNewEncryptKey(const OMEstring &key)
Definition: aesCover.cpp:95
uint32_t stackSize
Definition: OMEmethod.h:46
int OMEdefineNewDecryptKey(const OMEstring &key)
Definition: aesCover.cpp:103
#define LEN_LICENSE_MAGIC
Definition: OMElicense.cpp:16
int encode(class OMEencodeBuffer *) const
Add the encoding of an OMEtype into an OMEencodeBuffer.
Definition: OMEencode.cpp:189
int addMethod(OMEmethodP)
Add method implementation.
Definition: OMEclass.cpp:277
@ OME_NIL
Definition: OMEmanifests.h:78
#define OME_EXPECT_TRUE(expr)
Annotation macro for conditional expression expected to be true.
Definition: compiler_hints.h:541
@ OME_OID
Definition: OMEmanifests.h:84
DeleteStackFP deleteStackRoutine
Definition: OMEmethod.h:53
OMEtypes_t
Definition: OMEmanifests.h:77
void OMEdefaultInstanceDelete(const OMEclass *cInfo, void *data)
Definition: OMEclass.cpp:99
OMEstring * OMEbase64ToBinary(const OMEstring &source)
Convert base-64 encoded text to its binary representation.
Definition: OMEbase64.cpp:156
@ OME_UINT64
Definition: OMEmanifests.h:97
OMEnameSpaceGroup * OMEfindNameSpace(const OMEstring &name, int *errCode)
Definition: OMEnamespace.cpp:38
#define OME_ARRAY_SUBSCRIPT_t(v)
Definition: OMEarray.h:293
@ OME_INIT_VEC_LEN_IN_HEX_BYTES
Definition: OMEcrypto.h:14
OME fundamental type implementation.
OMEstring * midstr(size_t offset, size_t len) const
Definition: OMEstring.h:521
uint32_t ui
Definition: OMEbaseType.h:286
size_t length() const
Definition: OMEstring.h:401
OME_DLL_EXPORT uint32_t OMEconvertAbsoluteToLocalRelativeTime(const OMEtype &tData)
Convert an OME absolute time reference to a local relative time.
Definition: OMEtime.cpp:152
CreateStackFP createStackRoutine
Definition: OMEmethod.h:52
#define FILE_TYPE_LICENSE_V2
Definition: OMElicense.cpp:18
OMEthisProcessInfo OMEcurrentProcessInfo
Automatic instantiation of OMEthisProcessInfo. When properly linked, the C++ static constructor mecha...
Definition: OMEprocInfo.cpp:217
const char srcID[] OME_USED
Definition: tick_time.cpp:24
OMEstring * OMEfindFileInDirectory(const OMEstring &fileName, const OMEarray &dirNames)
Search for a file located within a list of directories specified as elements of an OMEarray.
Definition: OMEfindFile.cpp:292
OMEtype * OMEgetLocalizedData(const OMEstring &fileSuffix, const OMEstring &attrName, const OMEstring &signingKey)
Definition: OMElicense.cpp:589
@ OME_FORCE_QUOTES_IN_CONTAINER_OUTPUT
Definition: OMEmanifests.h:112
@ _OME_UNUSED_16
Definition: OMEmanifests.h:95
uint_fast32_t elementCount() const OME_ALWAYS_INLINE
Definition: OMEarray.h:247
@ _OME_UNUSED_15
Definition: OMEmanifests.h:94
int OMEfreeCipher(int useCipher)
Definition: aesCover.cpp:56
OMEstring * OMEgetUserName()
Return the name of the user associated with the process.
Definition: OMEprocInfo.cpp:285
@ OME_SET
Definition: OMEmanifests.h:89
Record to define the implementation of an OIL2 function.
Definition: OMEthread.h:287
Compiler-specific macros to provide performance-related hints.
#define OME_EXPECT_FALSE(expr)
Annotation macro for conditional expression expected to be false.
Definition: compiler_hints.h:540
Record to describe the implementation of the method of an OME class.
Definition: OMEmethod.h:35
void addImplementation(OMEinvocationData *impl)
Definition: OMEmethod.cpp:96
@ OME_UINT8
Definition: OMEmanifests.h:99
OMEtype * OMEgetSigningFile(const OMEstring &secret, const OMEstring &logicalDomain, bool isPublic)
Definition: OMElicense.cpp:648
@ OME_FIXED
Definition: OMEmanifests.h:91
@ OME_ERROR_CRYPTO_BAD_DATA
Definition: OMEcrypto.h:81
Implements sparse array of OMEtype elements.
Definition: OMEarray.h:75
Public interface to an OME thread.
Definition: OMEthread.h:60
#define LOG_ENDLINE
Closing clause for text line output using << operators.
Definition: logging_api.hpp:2956
const unsigned char OMEbase64alphabet[]
Definition: OMEbase64.cpp:20
@ OME_ANY
Definition: OMEmanifests.h:93
OMEstring * OMEmakeRandomKey(int32_t bits=1024)
Generate a random sequence of bits.
Definition: pkRoutines.cpp:46
uint32_t type
Definition: OMEbaseType.h:304
@ OME_DEFAULT_COMPLEX_OUTPUT_MODE
Definition: OMEmanifests.h:116
int inheritFromClass(const OMEstring &nameSpace, const OMEstring &name, const uint32_t verID=0, const bool unique=false)
Definition: OMEclass.cpp:349
class OMEinvocationData * next
Definition: OMEmethod.h:43
@ OME_ARRAY
Definition: OMEmanifests.h:86
#define OME_ERROR_BAD_DATA
Definition: OMEerror.h:21
OMEarrayStorage::ARRAY_SUBSCRIPT_t ARRAY_SUBSCRIPT_t
Definition: OMEarray.h:90
class OMEassoc * assoc
Definition: OMEbaseType.h:296
#define OMEtype
Definition: tmp.o.cpp:396
@ OME_OUTPUT_TYPENAME
Definition: OMEmanifests.h:109
union OMEinvocationData::@30 code
const unsigned char OMEhexDigits[]
Definition: OMEstring.cpp:19
@ OME_ASSOC
Definition: OMEmanifests.h:87
@ OME_DEFAULT_OUTPUT_MODE
Definition: OMEmanifests.h:115
OMEarray * OMEparsePathSpecification(const OMEstring &spec)
Parse a list of directories specified by a string path into an sequence of OMEarray elements.
Definition: OMEfindFile.cpp:236
@ OME_ESCAPE_UNPRINTABLE
Definition: OMEmanifests.h:113
@ OME_INIT_VEC_LEN_IN_BITS
Definition: OMEcrypto.h:13
@ OME_INT32
Definition: OMEmanifests.h:79
@ OME_INT64
Definition: OMEmanifests.h:81
int OMEloadOIL2(OMEthread *thread, OMEtype &result, const OMEtype &data, const OMEtype &justList)
Definition: OMEld.cpp:198
#define LOG_CERR(lvl)
Convenience macro that uses LOG_INTO() to conditionally log a message to standard error.
Definition: logging_api.hpp:3014
@ OME_ERROR_CRYPTO_BAD_MAGIC
Definition: OMEcrypto.h:77