#ifndef  ENTITY_SDAIOBSERVATION_H
#define  ENTITY_SDAIOBSERVATION_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.

class SC_SCHEMA_EXPORT SdaiObservation : public SDAI_Application_instance {
    protected:
        SDAI_String _id;
        SDAI_String _name;
        SDAI_String _description;
        EntityAggregate_ptr _applies_to = NULL;          //  of  observation_item

        SdaiObserved_context_agg_ptr _in_context = NULL;          //  of  observed_context

        SdaiObservation_recorder_agg_ptr _observed_by = NULL;          //  of  observation_recorder

        SDAI_Application_instance_ptr _observed_during = NULL;    //  OPTIONAL
        EntityAggregate_ptr _related_records = NULL;          //  of  observation_item

    public: 
        SdaiObservation();
        SdaiObservation( SDAI_Application_instance *se, bool addAttrs = true );
        SdaiObservation( SdaiObservation & e );
        ~SdaiObservation();
        int opcode() {
            return 386;
        }
  const SDAI_String   id_() const;
        SDAI_String   id_();
        void id_( const SDAI_String x );

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

  const SDAI_String   description_() const;
        SDAI_String   description_();
        void description_( const SDAI_String x );

        EntityAggregate_ptr_c applies_to_() const;
        EntityAggregate_ptr   applies_to_();
        void applies_to_( const EntityAggregate_ptr x );

        SdaiObserved_context_agg_ptr_c in_context_() const;
        SdaiObserved_context_agg_ptr   in_context_();
        void in_context_( const SdaiObserved_context_agg_ptr x );

        SdaiObservation_recorder_agg_ptr_c observed_by_() const;
        SdaiObservation_recorder_agg_ptr   observed_by_();
        void observed_by_( const SdaiObservation_recorder_agg_ptr x );

        SdaiActivity_actual_ptr_c observed_during_() const;
        SdaiActivity_actual_ptr   observed_during_();
        void observed_during_( const SdaiActivity_actual_ptr x );

        EntityAggregate_ptr_c related_records_() const;
        EntityAggregate_ptr   related_records_();
        void related_records_( const EntityAggregate_ptr x );

};

inline SdaiObservation * create_SdaiObservation() {
    return new SdaiObservation;
}

void init_SdaiObservation(Registry& reg);

namespace ap239_product_life_cycle_support_arm_lf {
    extern EntityDescriptor *e_observation;
    extern AttrDescriptor *a_896id;
    extern AttrDescriptor *a_897name;
    extern AttrDescriptor *a_898description;
    extern AttrDescriptor *a_899applies_to;
    extern AttrDescriptor *a_900in_context;
    extern AttrDescriptor *a_901observed_by;
    extern AttrDescriptor *a_902observed_during;
    extern AttrDescriptor *a_903related_records;
}

#endif
