This class contain all the constants needed for FML programming using .NET wrapper. Basically they are copied directly from Tuxedo C header file fml.h and fml32.h
System.Object
Bea.Tuxedo.FML.FMLC
public
sealed class FMLC {
public const
int MAXFBLEN =
0xfffc; /*
Maximum FBFR length */
public
const int MAXFBLEN32 = 0x7ffffffe; /*
Maximum FBFR3232 length */
public
const int FSTDXINT = 16; /*
Default indexing interval */
public
const int FMAXNULLSIZE =
2660;
public
const int FVIEWCACHESIZE = 128;
public
const int FVIEWNAMESIZE = 33;
/*
operations presented to _Fmodidx function */
public
const int FADD = 1;
public
const int FMLMOD = 2;
public
const int FDEL = 3;
/*
Flag options used in Fvstof() */
public
const int F_OFFSET = 1;
public
const int F_SIZE =
2;
public
const int F_PROP =
4; /*
P */
public
const int F_FTOS =
8; /*
S */
public
const int F_STOF =
16; /*
F */
public
const int F_BOTH =
(F_STOF | F_FTOS); /* S,F */
public
const int F_OFF =
0; /*
Z */
public
const int F_LENGTH = 32; /*
L */
public
const int F_COUNT = 64; /*
C */
public
const int F_NONE =
128; /*
NONE flag for null value */
/*
These are used in Fstof() */
public
const int FUPDATE = 1;
public
const int FCONCAT = 2;
public
const int FJOIN =
3;
public
const int FOJOIN =
4;
/*
Flags used in Fmbpack32(),Fmbupack32() */
public
const int FBUFENC = 1;
public
const int FTERMENC =
2;
/*
field types */
public
const int FLD_SHORT =
0; /* short int */
public
const int FLD_LONG =
1; /* long int */
public
const int FLD_CHAR =
2; /* character */
public
const int FLD_FLOAT =
3; /* single-precision float */
public
const int FLD_DOUBLE = 4; /* double-precision float */
public
const int FLD_STRING =
5; /* string - null terminated */
public
const int FLD_CARRAY = 6; /* character array */
/*
7 reserved for FLD_INT (see viewmap.h) */
/*
8 reserved for FLD_DECIMAL (see viewmap.h) */
public
const int FLD_INT = 7;
public
const int FLD_DECIMAL= 8;
/* field
types for FML32 only */
public
const int FLD_PTR = 9; /* pointer */
public
const int FLD_FML32 =
10; /*
embedded FML32 buffer */
public
const int FLD_VIEW32 = 11; /* embedded
VIEW32 */
public
const int FLD_MBSTRING =
12; /*
embedded multibyte codeset info */
/*
invalid field id - returned from functions where field id not found */
public
static readonly FLDID BADFLDID =
(FLDID)0;
/*
define an invalid field id used for first call to Fnext */
public
static readonly FLDID FIRSTFLDID =
(FLDID)0;
public
const int FVIEWFLDOVHD =
FVIEWNAMESIZE;
/* Field
Error Codes - these correspond to the error messages in
* F_error.c
- make sure to update the error
* message
list if a new error is added
*/
public
const int FMINVAL = 0; /* bottom of error message codes */
public
const int FALIGNERR =
1; /* fielded buffer not aligned */
public
const int FNOTFLD = 2; /* buffer not fielded */
public
const int FNOSPACE =
3; /* no space in fielded buffer */
public
const int FNOTPRES =
4; /* field not present */
public
const int FBADFLD = 5; /* unknown field number or type */
public
const int FTYPERR = 6; /* illegal field type */
public
const int FEUNIX =
7; /* unix system call error */
public
const int FBADNAME =
8; /* unknown field name */
public
const int FMALLOC = 9; /* malloc failed */
public
const int FSYNTAX = 10; /* bad syntax in
boolean expression */
public
const int FFTOPEN = 11; /* cannot
find or open field table */
public
const int FFTSYNTAX =
12; /*
syntax error in field table */
public
const int FEINVAL = 13; /* invalid
argument to function */
public
const int FBADTBL = 14; /* destructive
concurrent access to field table */
public
const int FBADVIEW =
15; /*
cannot find or get view */
public
const int FVFSYNTAX =
16; /* bad
viewfile */
public
const int FVFOPEN = 17; /* cannot find or
open viewfile */
public
const int FBADACM = 18; /* ACM contains
negative value */
public
const int FNOCNAME =
19; /* cname
not found */
public
const int FEBADOP = 20; /* operation invalid
for field type */
public
const int FMAXVAL = 21; /* top of error
message codes */
/*
typed-buffer types */
public
const string FMLTYPE =
"FML";
public
const string VIEWTYPE =
"VIEW";
public
const string FMLTYPE32 =
"FML32";
public
const string VIEWTYPE32 =
"VIEW32";
};
Thread safety
This type is safe for multithreaded operations.
Remarks
Requirements
Namespace: Bea.Tuxedo.FML
Assembly: libwscdnet (in libwscdnet.dll)