FARGOS/VISTA Object Management Environment Core  ..
FARGOS/VISTA Object Management Environment Core Table of Contents
OMEtype.h File Reference

OME fundamental type implementation. More...

#include <OMEmanifests.h>
#include <OMEarray.h>
#include <OMEassoc.h>
#include <OMEoid.h>
#include <OMEset.h>
#include <OMEstring.h>
#include <OMEfixed.h>
#include <OMEnlm.h>
#include <OMEbaseType.h>
#include <OMEoutputOnStream.h>

Go to the source code of this file.

Classes

struct  _OMEtypeDescription
 Internal structure to describe OME fundamental types. More...
 

Macros

#define _OME_TYPE_H   "$Id: OMEtype.h 312 2020-03-21 21:25:35Z geoff $"
 
#define OME_SIMPLE_TYPE   1
 A simple native type. More...
 
#define OME_EXTENDED_TYPE   2
 An extended native type. More...
 
#define OME_REFERENCE_TYPE   3
 A complex, reference counted type. More...
 
#define OMEtypeClass(t)   (_OMEtypeTable[(t) & 0x1f].typeClass)
 
#define OMEfundamentalType(t)   (_OMEtypeTable[(t) & 0x1f].basicType)
 
#define OME_FLAG_SORT_ASCENDING   0
 Sort ascending. More...
 
#define OME_FLAG_SORT_DESCENDING   1
 Sort descending. More...
 
#define OME_FLAG_SORT_BY_KEY   2
 Sort by associative array key. More...
 
#define OME_FLAG_SORT_CASE_INSENSITIVE   4
 Ignore case during sort. More...
 

Typedefs

typedef class OMEtypeOMEbaseTypeP
 
typedef const class OMEtypeREAD_ONLY_OMEtype
 A convenience typedef for performing read-only access to sparse and associative arrays. This inhibits copy-on-write activity. More...
 

Functions

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. More...
 
OME_FAST_CALL int stringToArrayOfTokens (OMEtype &result, const char *source, const int srcLen, const char *delimeterList=nullptr, const int convertFlag=0, const int charSet=OME_CHARSET_UNDEFINED)
 Tokenizes a buffer and saves the parsed tokens as individual elements of an array. More...
 
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. More...
 
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 elements of the array to be accessed in the requested order. More...
 

Variables

const _OMEtypeDescription _OMEtypeTable []
 
int OMEabortOnError
 If non-zero, abort() called on type error. More...
 

Detailed Description

OME fundamental type implementation.

Macro Definition Documentation

◆ _OME_TYPE_H

#define _OME_TYPE_H   "$Id: OMEtype.h 312 2020-03-21 21:25:35Z geoff $"
Generated: Fri Jul 31 2020 18:19:15
Support Information