#ifndef  TYPE_SDAICOMPOUND_ITEM_DEFINITION_H
#define  TYPE_SDAICOMPOUND_ITEM_DEFINITION_H

// This file was generated by exp2cxx,
// 0.8.1.
// You probably don't want to edit it since your modifications
// will be lost if exp2cxx is used to regenerate it.


//////////  SELECT TYPE SdaiCompound_item_definition
class SC_SCHEMA_EXPORT SdaiCompound_item_definition  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   LIST_REPRESENTATION_ITEM    --  LIST_TYPE
    //   SET_REPRESENTATION_ITEM    --  SET_TYPE
       EntityAggregate_ptr _entityaggregate;

  public:
    virtual const TypeDescriptor * AssignEntity (SDAI_Application_instance * se);
    virtual SDAI_Select * NewSelect ();

    virtual BASE_TYPE ValueType() const;


// STEP Part 21
    virtual void STEPwrite_content (ostream& out =std::cout,
                    const char *currSch =0) const;
    virtual void STEPwrite_verbose (ostream& out =std::cout,
                    const char *currSch =0) const;
    virtual Severity STEPread_content (istream& in =cin,
        InstMgrBase * instances =0, const char *utype =0,
        int addFileId =0, const char *currSch =0);
    virtual Severity StrToVal_content (const char *,
        InstMgrBase * instances =0);

// STEP Part 22:  SDAI

// constructors
    SdaiCompound_item_definition( const SelectTypeDescriptor * =integrated_cnc_schema::t_compound_item_definition );
    //  part 1
    SdaiCompound_item_definition( const SdaiSet_representation_item_ptr&,
                                  const SelectTypeDescriptor * =integrated_cnc_schema::t_compound_item_definition );
    virtual ~SdaiCompound_item_definition();

    //  part 2
    operator SdaiSet_representation_item_ptr ();

    //  part 3

    //  part 4
    SdaiCompound_item_definition& operator =( const SdaiSet_representation_item_ptr& );
    // not in SDAI
    SdaiCompound_item_definition& ShallowCopy ( const SdaiCompound_item_definition& );

#ifdef COMPILER_DEFINES_OPERATOR_EQ
#else
    SdaiCompound_item_definition& operator =( SdaiCompound_item_definition * const & );
    SDAI_Select& operator =( const SDAI_Select& );
#endif

    //  part 5
    Logical IsList_representation_item() const;
    Logical IsSet_representation_item() const;

    //  part 6 ... UnderlyingTypeName () implemented in SDAI_Select class ...

    //  part 7
    const TypeDescriptor *SetUnderlyingType ( const TypeDescriptor * td );
};

inline SDAI_Select * create_SdaiCompound_item_definition () { return new SdaiCompound_item_definition; }
typedef SdaiCompound_item_definition * SdaiCompound_item_definitionH;
typedef SdaiCompound_item_definition_ptr SdaiCompound_item_definition_var;


class SdaiCompound_item_definition_agg : public SelectAggregate {
  protected:
    SelectTypeDescriptor *sel_type;

  public:
    SdaiCompound_item_definition_agg( SelectTypeDescriptor * =integrated_cnc_schema::t_compound_item_definition );
    ~SdaiCompound_item_definition_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiCompound_item_definition( sel_type )); }
};
inline STEPaggregate * create_SdaiCompound_item_definition_agg () { return new SdaiCompound_item_definition_agg; }
typedef SdaiCompound_item_definition_agg_ptr SdaiCompound_item_definition_agg_var;

/////  END SELECT TYPE compound_item_definition

void init_SdaiCompound_item_definition(Registry& reg);

#endif
