/***************
Copyright © 1996 Norlinvest Ltd. All rights reserved.
Visual Code Model Generator, EDSpice, EDWin, EE Designer, CompCAD,
CAD 1000, CAD ABC and Visionics are trade marks of Norlinvest Ltd.
Copyright © 1983 - 1996.
*
*
Copyright 1991
Georgia Tech Research Corporation
Atlanta, Georgia 30332
All Rights Reserved
****************/

#ifndef MIFPARSE
#define MIFPARSE

#include  "MIFtypes.h"

typedef struct Mif_Conn_Info_s {

    char            *name;          
    char            *description;  
    Mif_Dir_t       direction;         
    Mif_Port_Type_t default_port_type; 
    char            *default_type;   
    int             num_allowed_types; 
    Mif_Port_Type_t *allowed_type;  
    char            **allowed_type_str; 
    Mif_Boolean_t   is_array;          
    Mif_Boolean_t   has_lower_bound; 
    int             lower_bound;  
    Mif_Boolean_t   has_upper_bound;  
    int             upper_bound;   
    Mif_Boolean_t   null_allowed; 

} Mif_Conn_Info_t;

typedef struct Mif_Param_Info_s {

    char                *name;            
    char                *description;  
    Mif_Data_Type_t     type;    
    Mif_Boolean_t       has_default;  
    Mif_Parse_Value_t   default_value; 
    Mif_Boolean_t       has_lower_limit; 
    Mif_Parse_Value_t   lower_limit;   
    Mif_Boolean_t       has_upper_limit; 
    Mif_Parse_Value_t   upper_limit;
    Mif_Boolean_t       is_array;  
    Mif_Boolean_t       has_conn_ref;   
    int                 conn_ref;     
    Mif_Boolean_t       has_lower_bound;  
    int                 lower_bound;     
    Mif_Boolean_t       has_upper_bound;  
    int                 upper_bound;    
    Mif_Boolean_t       null_allowed;    

} Mif_Param_Info_t;


typedef struct Mif_Inst_Var_Info_s {

    char                *name;         
    char                *description; 
    Mif_Data_Type_t     type;  
    Mif_Boolean_t       is_array;  

} Mif_Inst_Var_Info_t;


#endif /* MIFPARSE */
