x3innovation / X3F1Studio

X3F1 Studio provides a realtime collaborative user interface for developing F1 application
0 stars 0 forks source link

DMX data model upgrade #32

Closed 1730wang closed 10 years ago

1730wang commented 10 years ago

All the attributes of DMX data are stored in a CollaborativeMap (dmx.doc.attributes is a CollaborativeMap)

Currently, each element of this CollaborativeMap is a string. information is stored in "info | info | info | ..." format.

To be exact, the format is:

var val = name + '|' + type + '|' + desc + '|' + defaultValue + '|' + readOnly + '|' + optional + '|' + sequenceLength + '|' + length + '|' + min + '|' + max + '|' + ref + '|' + refType + '|' + enumName + '|' + enumValue;

We want to convert this string into Javascript object. e.g.

var val = { 
    name: "name",
    type: "Double", 
    desc: "the description of this attr", 
... 
};
x3innovation commented 10 years ago

seems to be working