UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Macros | Functions
DmnDef.h File Reference
#include <sys/types.h>
#include <mix/Types.h>
#include <mix/units.h>

Go to the source code of this file.

Classes

struct  DomainDef
 

Macros

#define BASE_NAME_LEN   15
 

Functions

size_t ResolveDomainOffsets (unsigned dmns_n, DomainDef *dmns)
 
size_t SizeOfAllDomains (unsigned dmns_n, const DomainDef *dmns)
 
size_t SizeOfDomain (const DomainDef *dmn)
 
Logic MatchedDomainDef (const DomainDef *dmn1, const DomainDef *dmn2)
 
unsigned FindDomainName (unsigned dmns_n, const DomainDef *dmns, const char *name)
 

Detailed Description

Domain of the record definition and related facilities.

Macro Definition Documentation

#define BASE_NAME_LEN   15

Maximum length of the domain and record type names without EOL.

Function Documentation

unsigned FindDomainName ( unsigned  dmns_n,
const DomainDef dmns,
const char *  name 
)

Find domain with given name or return out of range value

Logic MatchedDomainDef ( const DomainDef dmn1,
const DomainDef dmn2 
)

Compare domains and return true only in case of matched names, atype and dimension (category does not matter).

size_t ResolveDomainOffsets ( unsigned  dmns_n,
DomainDef dmns 
)

Compute offsets in given domain list and return sum size of all domains.

size_t SizeOfAllDomains ( unsigned  dmns_n,
const DomainDef dmns 
)

Total size of all mentioned domains.

size_t SizeOfDomain ( const DomainDef dmn)

Size of the domain.