FARGOS/VISTA Object Management Environment Core  ..
FARGOS/VISTA Object Management Environment Core Table of Contents
OMEfunctions.h
Go to the documentation of this file.
1 #ifndef _OME_FUNCTIONS_H
2 #define _OME_FUNCTIONS_H "$Id: OMEfunctions.h 445 2020-07-23 20:07:15Z geoff $"
4 
6 
7 # include <OMEtype.h>
8 
20 OME_DLL_EXPORT uint32_t OMEhash(const unsigned char *data, const uint32_t len) NONNULL_PARAMETERS(1);
21 
22 OME_DLL_EXPORT uint32_t OMEhash(const OMEstring &data);
23 
24 OME_DLL_EXPORT uint32_t OMEmethodSignature(const int argc, const uint32_t types[],
25  uint32_t *anyMask = nullptr);
26 
28  const OMEstring &path);
29 
31  const OMEarray &dirList);
32 
34 
35 OME_DLL_EXPORT OMEarray *OMElistDirectory(const OMEstring &dirName, int *errRet = nullptr);
36 
38  uint32_t tArg, int asGMT);
39 
41 
42 OME_DLL_EXPORT int OMErfc1123Date(OMEtype &result, const OMEtype &argData);
43 
44 OME_DLL_EXPORT int OMEiso8601Date(OMEtype &result, const OMEtype &argData);
45 
46 OME_DLL_EXPORT int OMEconvertRFC1123date(OMEtype &result, const OMEtype &timeString);
47 
48 OME_DLL_EXPORT int OMEtimeDifference(const OMEtype &time1, const OMEtype &time2);
49 
50 OME_DLL_EXPORT int OMEtransportToSockaddr(union sockBigEnough *sock,
51  uint_fast16_t *sockLen, int *sockMode,
52  const char *url, uint_fast16_t urlLen) NONNULL_PARAMETERS(1, 2, 3, 4);
53 
54 OME_DLL_EXPORT OMEstring *OMEdisplayableAddress(const struct sockaddr *sock,
55  const int len, const uint32_t openMode) NONNULL_PARAMETERS(1);
56 
58 
62 #endif
63 /* vim: set expandtab shiftwidth=4 tabstop=4: */
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
OMEdisplayableAddress
OME_DLL_EXPORT int OME_DLL_EXPORT OMEstring * OMEdisplayableAddress(const struct sockaddr *sock, const int len, const uint32_t openMode) NONNULL_PARAMETERS(1)
Convert sockaddr data into a text string.
Definition: OMEaddr.cpp:349
OMEstring
Implements text and binary string storage.
Definition: OMEstring.h:305
OMEtype
Fundamental ANY type for FARGOS/VISTA Object Management Environment.
Definition: OMEbaseType.h:250
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
OMElistDirectory
OME_DLL_EXPORT OMEarray * OMElistDirectory(const OMEstring &dirName, int *errRet=nullptr)
List all files within a filesystem directory.
Definition: OMEfindFile.cpp:112
NONNULL_PARAMETERS
#define NONNULL_PARAMETERS(...)
Mark parameters to a function as not permitting null pointers.
Definition: compiler_hints.h:335
OMEgetInterfaces
OME_DLL_EXPORT int OMEgetInterfaces(OMEtype &result)
Definition: OMEifList.cpp:290
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
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
OMEtype.h
OME fundamental type implementation.
OMEtransportToSockaddr
OME_DLL_EXPORT int OMEtransportToSockaddr(union sockBigEnough *sock, uint_fast16_t *sockLen, int *sockMode, const char *url, uint_fast16_t urlLen) NONNULL_PARAMETERS(1
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
OMEfindFileInDirectory
OME_DLL_EXPORT OMEstring * OMEfindFileInDirectory(const OMEstring &fileName, const OMEarray &dirList)
Search for a file located within a list of directories specified as elements of an OMEarray.
Definition: OMEfindFile.cpp:292
OMEfindFileInPathSpec
OME_DLL_EXPORT OMEstring * OMEfindFileInPathSpec(const OMEstring &fileName, const OMEstring &path)
Search for a file located within a set of directories specified by a string path.
Definition: OMEfindFile.cpp:344
OMEmethodSignature
OME_DLL_EXPORT uint32_t OMEmethodSignature(const int argc, const uint32_t types[], uint32_t *anyMask=nullptr)
Compute 32-bit signature of a method's arguments.
Definition: OMEsignature.cpp:15
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
OME_DLL_EXPORT
#define OME_DLL_EXPORT
Definition: compiler_hints.h:464
OMEarray
Implements sparse array of OMEtype elements.
Definition: OMEarray.h:75
OMEtimeDifference
OME_DLL_EXPORT int OMEtimeDifference(const OMEtype &time1, const OMEtype &time2)
Compute difference between two OME absolute time references.
Definition: OMEtime.cpp:529
OMEparsePathSpecification
OME_DLL_EXPORT OMEarray * OMEparsePathSpecification(const OMEstring &pathSpec)
Parse a list of directories specified by a string path into an sequence of OMEarray elements.
Definition: OMEfindFile.cpp:236
Generated: Tue Jul 28 2020 16:03:25
Support Information