"Table L.1" shows mapping between OKS and IS attribute types. The second and third columns represent all the types supported by the C++ and Java IS libraries for the information attributes definition. An information attributes can be declared as variable of one of these types or as an array of one of them.
OKS Attribute type |
C++ IS attribute type |
Java IS attribute type |
---|---|---|
bool |
bool |
boolean |
s8 |
char |
byte |
u8 |
unsigned char |
byte |
s16 |
short |
short |
u16 |
unsigned short |
short |
s32 |
long |
int |
u32 |
unsigned long |
int |
float |
float |
float |
double |
double |
double |
date |
OWLDate1 |
java.sql.Data |
time |
OWLTime2 |
java.sql.Time |
string |
string |
java.lang.String |
enum |
enum |
int |
For the multi-value attributes the C++ generated code uses either std::vector of corresponding type or C like array of that type. This can be chosen using the command line parameters of the IS generator application. The Java generated code uses the plain Java arrays for the multi-value attributes.
1. OWLDate class is implemented by the OWL component of the Online Software. Documentation can be found in [12].
2. OWLTime class is implemented by the OWL component of the Online Software. Documentation can be found in [12].
2 July 1998 - WebMaster | Copyright © CERN 1998 |