Hi,

I have a problem using a field container derived class. For simplicity let's
just name my classes type1 and type2, both defined using fcd files. Now
type2 needs to have a multifield of type1.

First I tried this:

  <Field
    name="locations"
    type="type1"
    header="./OSGType1Fields.h"
    cardinality="multi"
    visibility="external"
    access="public">
  </Field>

This would be the preferred solution as type1 is quite small (only 5 floats)
and the whole multifield is not changed after loading.
This didn't work because MFType1 was not defined. However the file
OSGType1Fields.h contains all the definitions for pointers so I tried:

<Field
name="locations"
category="pointer"
type="type1"
header="./OSGType1Fields.h"
cardinality="multi"
visibility="external"
access="public">
</Field>

This does not compile either, because fcd2code insists to add the following
include to OSGType2Base.cpp:
#include <OpenSG/OSGType1.h> // Locations Class
Which doesn't exist of course as type1 is not part of OpenSG 2.

Besides the fact that the effect in part #2 is obviously a bug, what is the
preferred way of using such a small class?

Aloha, Andi


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to