UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
DmnDef.h
Go to the documentation of this file.
1 /* DmnDef.h */
2 /* $Id: DmnDef.h,v 1.2 2004/04/22 07:51:18 vlad Exp $ */
3 #ifndef __DmnDef_h
4 #define __DmnDef_h
5 
11 #include <sys/types.h>
12 
13 #include <mix/Types.h>
14 #include <mix/units.h>
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif /* C++ */
19 
20 
22 #define BASE_NAME_LEN 15
23 
25  typedef struct
26  {
27  char name[BASE_NAME_LEN+1];
28  AtomType atype;
29  unsigned dim;
30  CategoryId categ;
32  /* Additional features */
33  off_t offset;
34  void *options;
36  } DomainDef;
37 
38 
41  size_t ResolveDomainOffsets (unsigned dmns_n, DomainDef* dmns);
42 
44  size_t SizeOfAllDomains (unsigned dmns_n, const DomainDef* dmns);
45 
47  size_t SizeOfDomain (const DomainDef* dmn);
48 
51  Logic MatchedDomainDef (const DomainDef* dmn1,
52  const DomainDef* dmn2);
53 
55  unsigned FindDomainName (unsigned dmns_n, const DomainDef* dmns,
56  const char* name);
57 
58 
59 #ifdef __cplusplus
60 };
61 #endif /* C++ */
62 
63 
64 #endif /* DmnDef.h */
void * options
Definition: DmnDef.h:34
size_t SizeOfAllDomains(unsigned dmns_n, const DomainDef *dmns)
#define BASE_NAME_LEN
Definition: DmnDef.h:22
CategoryId categ
Definition: DmnDef.h:30
size_t ResolveDomainOffsets(unsigned dmns_n, DomainDef *dmns)
unsigned dim
Definition: DmnDef.h:29
unsigned FindDomainName(unsigned dmns_n, const DomainDef *dmns, const char *name)
AtomType atype
Definition: DmnDef.h:28
Logic MatchedDomainDef(const DomainDef *dmn1, const DomainDef *dmn2)
size_t SizeOfDomain(const DomainDef *dmn)
Definition: DmnDef.h:25
off_t offset
Definition: DmnDef.h:33