Discussion Forums

dictionary inheritance
rupal shah / self
19 Jan 2010 9:12AM ET

I am new to FAST and want to define the template inheritance. I have following questions
1. Do we need to define the "global" dictionary template ?
   my understanding: I dont think so !

2. do we need to define the reference template by itself or the FAST code should build by itself.
   my understanding: Fast code should by itself

3. If I want to use only copy code and increment code operators. Is there any difference between FAST 1.0 and 1.1 ?
   my understanding: for these two operator there is no change in the updated spec

4. Can someone clarify my understanding of following template definition ?

(template name=”T1” )
(typeRef name=”t4”)
(string name=”Field1” presence=”mandatory”)
                (copy dictionary=”global”)
(/string)
(string name=”Field2” presence=”mandatory”)
                (copy dictionary=”global”)
(/string)
(string name=”Field3” presence=”mandatory”)
                (copy dictionary=”type”)
(/string)
(string name=”Field4” presence=”mandatory”)
                (copy dictionary=”template”)
(/string)
(/template)

(template name=”T2” )
(typeRef name=”t4”)
(string name=”Field2” presence=”mandatory”)
                (copy dictionary=”global”)
(/string)
(string name=”Field3” presence=”mandatory”)
                (copy dictionary=”global”)
(/string)
(string name=”Field4” presence=”mandatory”)
                (copy dictionary=”type”)
(/string)
(string name=”Field5” presence=”mandatory”)
                (copy dictionary=”template”)
(/string)
(/template)

(template name=”T3”)
(typeRef name=”t4”)
(string name=”Field3” presence=”mandatory”)
                (copy dictionary=”global”)
(/string)
(string name=”Field4” presence=”mandatory”)
                (copy dictionary=”global”)
(/string)
(string name=”Field5” presence=”mandatory”)
                (copy dictionary=”type”)
(/string)
(string name=”Field6” presence=”mandatory”)
                (copy dictionary=”template”)
(/string)
(/template)

(template name=”T3”)
(typeRef name=”t4”)
(string name=”Field4” presence=”mandatory”)
                (copy dictionary=”global”)
(/string)
(string name=”Field5” presence=”mandatory”)
                (copy dictionary=”global”)
(/string)
(string name=”Field6” presence=”mandatory”)
                (copy dictionary=”type”)
(/string)
(string name=”Field7” presence=”mandatory”)
                (copy dictionary=”template”)
(/string)
(/template)

Following is my understanding is:
Template1:
T1.field1 global
T1.field2 global
T1.field3 t4
T1.field4 T1

Template2:
T2.field2 global
T2.field3 global
T2.field4 t4
T2.field5 T2

Template3:
T3.field3 global
T3.field4 global
T3.field5 t4
T3.field6 T3

Template4:
T4.field4 global
T4.field5 global
T4.field6 t4
T4.field7 T4

5. In the above example if I use templateRef instead of typeRef what is the difference ?
   my understanding : nothing !


dictionary inheritance
rupal shah / self   19 Jan 2010 9:12AM ET
Re: dictionary inheritance
rupal shah / self   28 Jan 2010 10:46AM ET
Re: dictionary inheritance
David Rosenborg / Pantor Engineering AB   29 Jan 2010 5:33AM ET
Re: dictionary inheritance
rupal shah / self   29 Jan 2010 11:40AM ET
Re: dictionary inheritance
Rolf Andersson / Pantor Engineering   30 Jan 2010 1:13AM ET
Re: dictionary inheritance
rupal shah / self   1 Feb 2010 10:43AM ET