#ifndef  TYPE_SDAITEMPLATE_INSTANCE_H
#define  TYPE_SDAITEMPLATE_INSTANCE_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 SdaiTemplate_instance
class SC_SCHEMA_EXPORT SdaiTemplate_instance  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   MAPPING_BASED_TEMPLATE_INSTANCE    --  sdaiINSTANCE
    //   TRANSFORMATION_BASED_TEMPLATE_INSTANCE    --  sdaiINSTANCE
       SDAI_Application_instance_ptr _app_inst;

  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
    SdaiTemplate_instance( const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_template_instance );
    //  part 1
    SdaiTemplate_instance( const SdaiMapping_based_template_instance_ptr&,
                           const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_template_instance );
    SdaiTemplate_instance( const SdaiTransformation_based_template_instance_ptr&,
                           const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_template_instance );
    virtual ~SdaiTemplate_instance();

    //  part 2
    operator SdaiMapping_based_template_instance_ptr();
    operator SdaiTransformation_based_template_instance_ptr();

    //  part 3
        SdaiCartesian_transformation_ptr_c replication_transformation_() const;
        SdaiCartesian_transformation_ptr   replication_transformation_();
        void replication_transformation_( const SdaiCartesian_transformation_ptr x );

        SdaiGeometric_mapping_target_ptr_c target_() const;
        SdaiGeometric_mapping_target_ptr   target_();
        void target_( const SdaiGeometric_mapping_target_ptr x );

        SdaiAxis_placement_ptr_c source_() const;
        SdaiAxis_placement_ptr   source_();
        void source_( const SdaiAxis_placement_ptr x );

        SdaiShape_model_ptr_c replicated_model_() const;
        SdaiShape_model_ptr   replicated_model_();
        void replicated_model_( const SdaiShape_model_ptr x );

  const SDAI_String   name_() const;
        SDAI_String   name_();
        void name_( const SDAI_String x );


    //  part 4
    SdaiTemplate_instance& operator =( const SdaiMapping_based_template_instance_ptr& );
    SdaiTemplate_instance& operator =( const SdaiTransformation_based_template_instance_ptr& );
    // not in SDAI
    SdaiTemplate_instance& ShallowCopy ( const SdaiTemplate_instance& );

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

    //  part 5
    Logical IsMapping_based_template_instance() const;
    Logical IsTransformation_based_template_instance() const;

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

    //  part 7 ... NONE    only for complex selects...
};

inline SDAI_Select * create_SdaiTemplate_instance () { return new SdaiTemplate_instance; }
typedef SdaiTemplate_instance * SdaiTemplate_instanceH;
typedef SdaiTemplate_instance_ptr SdaiTemplate_instance_var;


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

  public:
    SdaiTemplate_instance_agg( SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_template_instance );
    ~SdaiTemplate_instance_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiTemplate_instance( sel_type )); }
};
inline STEPaggregate * create_SdaiTemplate_instance_agg () { return new SdaiTemplate_instance_agg; }
typedef SdaiTemplate_instance_agg_ptr SdaiTemplate_instance_agg_var;

/////  END SELECT TYPE template_instance

void init_SdaiTemplate_instance(Registry& reg);

#endif
