none
redefinition de type RRS feed

  • Question

  • Dans ma migration vers le code managé, j'ai une série d'erreur que je  ne comprends pas

    1>D:\usr\Specification LoaderV4.1\dev\Common\com\EnumerationM.hpp(199): error C2011: 'enDATABASE_TYPE' : redéfinition du type 'enum'
    1>          D:\usr\Specification LoaderV4.1\dev\Common\com\Enumerations.hpp(100) : voir la déclaration de 'enDATABASE_TYPE'
    1>D:\usr\Specification LoaderV4.1\dev\Common\com\EnumerationM.hpp(207): error C2011: 'enDATABASE_STATUS' : redéfinition du type 'enum'
    1>          D:\usr\Specification LoaderV4.1\dev\Common\com\Enumerations.hpp(109) : voir la déclaration de 'enDATABASE_STATUS'
    1>D:\usr\Specification LoaderV4.1\dev\Common\com\EnumerationM.hpp(213): error C2011: 'enSERVER_STATUS' : redéfinition du type 'enum'
    1>          D:\usr\Specification LoaderV4.1\dev\Common\com\Enumerations.hpp(93) : voir la déclaration de 'enSERVER_STATUS'
    1>D:\usr\Specification LoaderV4.1\dev\Common\com\EnumerationM.hpp(221): error C2365: 'DATABASESERVER_NONE' : redéfinition ; la précédente définition était 'énumérateur'
    1>          D:\usr\Specification LoaderV4.1\dev\Common\com\Enumerations.hpp(86) : voir la déclaration de 'DATABASESERVER_NONE'
    1>D:\usr\Specification LoaderV4.1\dev\Common\com\EnumerationM.hpp(222): error C2365: 'DATABASESERVER_INTERBASE_6_0' : redéfinition ; la précédente définition était 'énumérateur'
    1>          D:\usr\Specification LoaderV4.1\dev\Common\com\Enumerations.hpp(87) : voir la déclaration de 'DATABASESERVER_INTERBASE_6_0'
    1>D:\usr\Specification LoaderV4.1\dev\Common\com\EnumerationM.hpp(224): error C2365: 'NUMBER_OF_DATABASESERVER' : redéfinition ; la précédente définition était 'énumérateur'
    1>          D:\usr\Specification LoaderV4.1\dev\Common\com\Enumerations.hpp(88) : voir la déclaration de 'NUMBER_OF_DATABASESERVER'
    1>D:\usr\Specification LoaderV4.1\dev\Common\com\EnumerationM.hpp(228): error C2011: 'enInArray' : redéfinition du type 'enum'
    1>          D:\usr\Specification LoaderV4.1\dev\Common\com\Enumerations.hpp(142) : voir la déclaration de 'enInArray'
    1>D:\usr\Specification LoaderV4.1\dev\Common\com\EnumerationM.hpp(236): error C2011: 'enBold' : redéfinition du type 'enum'
    1>          D:\usr\Specification LoaderV4.1\dev\Common\com\Enumerations.hpp(150) : voir la déclaration de 'enBold'
    1>D:\usr\Specification LoaderV4.1\dev\Common\com\EnumerationM.hpp(244): error C2011: 'enItalic' : redéfinition du type 'enum'
    1>          D:\usr\Specification LoaderV4.1\dev\Common\com\Enumerations.hpp(158) : voir la déclaration de 'enItalic'
    1>D:\usr\Specification LoaderV4.1\dev\Common\com\EnumerationM.hpp(252): error C2011: 'enUnderline' : redéfinition du type 'enum'
    1>          D:\usr\Specification LoaderV4.1\dev\Common\com\Enumerations.hpp(166) : voir la déclaration de 'enUnderline'
    1>D:\usr\Specification LoaderV4.1\dev\Common\com\EnumerationM.hpp(260): error C2011: 'enUppercase' : redéfinition du type 'enum'
    1>          D:\usr\Specification LoaderV4.1\dev\Common\com\Enumerations.hpp(174) : voir la déclaration de 'enUppercase'
    1>D:\usr\Specification LoaderV4.1\dev\Common\com\POS.h(29): error C3699: '^' : impossible d'utiliser cette indirection sur le type 'stPOS'
    1>          le compilateur remplace '^' par '*' pour poursuivre l'analyse

    je met l'include pour référence :

    /*******************************************************************************
    * FILE NAME: Enumerations.hpp
    * PURPOSE:   This file contains constants and user defined data for all the
    *            classes.
    * HISTORY:
    * Date        Version                   Author
    * 16/05/2003  initial version :1.0      jn Martin
    *******************************************************************************/
    #ifndef EnumerationM_H
    #define EnumerationM_H
    //--------------------------- INCLUDE-FILES ------------------------------------
    	
        public enum class enStatusDoc
    	{
    		DOCUMENT_NONE = 0,
    		DOCUMENT_AVAILABLE,
    		DOCUMENT_LOADE,
    		DOCUMENT_CHECKE,
    		DOCUMENT_MODELLE,
    		DOCUMENT_TO_REWORK,
    	};
    
    	public enum class enApplicationNameM
    {
    	APPLICATIONNAME_NONE = 0,
    	APPLICATIONNAME_SPECIFICATION_LOADER,
    	APPLICATIONNAME_ALIGNER,					//	the document can be read with MS Word as a word document
    	APPLICATIONNAME_MEMORIA_MANAGER,	//	the document can be read with an HTML parser
    	APPLICATIONNAME_TRANSLATION_TOOL,	//	the document can be read with an XML parser
    	NUMBER_OF_APPLICATIONNAME,
    };
    
    	public enum class enObjectClass
    	{
    		APPLICATIONNAME_NONE = 0,
    		APPLICATIONNAME_SPECIFICATION_LOADER,
    		APPLICATIONNAME_ALIGNER,					//	the document can be read with MS Word as a word document
    		APPLICATIONNAME_MEMORIA_MANAGER,	//	the document can be read with an HTML parser
    		APPLICATIONNAME_TRANSLATION_TOOL,	//	the document can be read with an XML parser
    		NUMBER_OF_APPLICATIONNAME,
    		DATABASESERVER_NONE,
    		DATABASESERVER_INTERBASE_6_0,
    		DATABASESERVER_SQLSERVER,
    		UTILITY_OPTION_MANAGER_COPTION_METHOD,
    		LOAD_OPTIONS,
    		GET_BOOLEAN_VALUE,
    		GET_UINT_VALUE,
    		GET_SHORT_VALUE,
    		GET_STRING_VALUE,
    		GET_LIST_OF_VALUE,
    		SET_BOOLEAN_VALUE,
    		SET_UINT_VALUE,
    		SET_STRING_VALUE,
    		SET_LIST_OF_VALUE,
    		SAVE_OPTIONS,
    		GET_STRING_LIST,
    		MANAGE_ALIGNMENT_DATABASE_OPENING,
    		MANAGE_DOCUMENTS_PAIRS_PROCESSING,
    		ALIGN_DOCUMENTS_PAIRS,
    		MANAGE_SEGMENT_SELECTING,
    		MANAGE_CHUNK_SELECTING,
    		MANAGE_WORKPROGRESS_ESTIMATION,
    		MANAGE_EDIT_PARAMETERS,
    		MANAGE_EDIT_CRITERIA,
    		MANAGE_SEGMENT_VIEW,
    		MANAGE_CHUNKS_VIEW,
    		MANAGE_CLOSE_PROJECT,
    		MANAGE_QUIT,
    		MANAGE_EQUIVALENT_EXTRACTION,
    		DISPLAY_SEGMENTS,
    		MANAGE_CHUNKS_EQUIVALENTS_EXTRACTION,
    		DISPLAY_CHUNKS_OF_SEGMENTS,
    		SPLIT_INTO_SEGMENT,
    		ADD_SPACE,
    		GLOBAL_ANALYSE,
    		ANALYSE_CSCHEDULER_GLOBAL,
    		CANT_OPEN_DOCUMENT,
    		SET_WHOLE_SEGMENT_LINK_DESCRIPTION,
    		DOES_A_LEMMA_LINK_FIT_PROBABILITY_THRESHOLD,
    		STATUS_DOC_SOURCE,
    		MOVE_CHUNK_OF_SEGMENT,
    		MOVE_SEGMENT,
    		GET_CHUNK_IDS_OF_SEGMENT,
    		GET_SEGMENTS_CLUES,
    		GET_CHUNKS_DESCRIPTION_OF_SEGMENT,
    		GET_NGRAM_DESCRIPTION,
    		CREATE_SEGMENT_AND_ALL_ITS_SUB_ELEMENT,
    		GET_SEGMENTS_LAYOUT,
    		GET_SEGMENTS_STATISTICS,
    		GET_SEGMENTS_DESCRIPTION,
    		UPDATE_SEGMENT_LINK,
    		UPDATE_CHUNK_LINK,
    		GET_LIST_OF_LEMMA_DESCRIPTIONS_FROM_SEGMENT_ID,
    		CMDB_MANAGER,
    		SERVER_DISCONNECTED,
    		SERVER_CONNECTED,
    	};
    	//Liste of the existing modules that compose Memoria system
    	public enum class enErrorM                     //Class Error code
    	{
    		ERR_DOCUMENT_MANAGER_START_READER = 0,
    		ERR_DOCUMENT_MANAGER_OPEN_DOC,
    		ERR_DOCUMENT_MANAGER_INIT_POINT_BLOC,
    		ERR_DOCUMENT_MANAGER_READ_BLOC,
    		ERR_PARSER_MANAGER_PARSE_BLOC,
    		ERR_SEGMENTATION_SPLIT_IN_SEGMENT,
    		ERR_CHUNKER_SPLIT_IN_CHUNK,
    		ERR_CANNOT_SEARCH_NGRAM,
    		ERR_SEGMENTATION_ADD_SPACE,
    		ERR_MISSION_DATABASE_CREATE_SEGMENT,
    		ERR_CANNOT_COMPUTE_ALIGNMENT_SCORE,
    		ERR_POINTER_NULL,
    		ERR_DATABASE_PROBLEM,
    		ERR_CANT_GO_TO_NEXT_BLOC,
    		ERR_DOC_IS_NULL,
    		ERR_UNKNOWN_SERVER_TYPE,              //Server type not recognized                          0
    		ERR_SERVER_NOT_CONNECTED,             //Connection to the Server is not established
    		ERR_LEMMA_NOT_UNIQUE,                 //There is several identical Lemma
    		ERR_WORD_NOT_UNIQUE,                  //There is several identical Word
    		ERR_CHUNK_NOT_UNIQUE,                 //There is several identical Chunk
    		ERR_PROPOSITION_NOT_UNIQUE,
    		ERR_NGRAM_NOT_UNIQUE,                 //There is several identical NGram
    		ERR_SEG_CHUNK_NOT_FOUND,              //The seg_chunk is not found
    		ERR_MAP_VALUE_SEG_CHUNK_EMPTY,        //The map value for the seg_chunk is empty
    		ERR_SEGMENT_LIST_INCOHERENT,          //The source and target segment list are incoherent
    		ERR_LEMMA_LINK_NOT_FOUND,             //No Lemma link found.
    		ERR_LEMMA_LINK_NOT_UNIQUE,            //Lemma link not unique.                              10
    		ERR_NGRAM_LINK_NOT_UNIQUE,            //NGram link not unique.
    		ERR_SEG_NOT_FOUND,                    //The Seg is not found
    		ERR_MAP_VALUE_SEG_EMPTY,              //The map value for the chunk is empty
    		ERR_NEXT_NOT_ALIGN_SEG_NOT_FOUND,     //The next Seg is not found
    		ERR_MAP_VALUE_NOT_ALIGN_SEG_EMPTY,    //The map value for the chunk is empty
    		ERR_SEGMENT_LINK_NOT_UNIQUE,          //Segment link not unique.
    		ERR_CHUNK_LINK_NOT_UNIQUE,            //Chunk link not unique.
    		ERR_FONT_NOT_UNIQUE,                  //There is several identical Word
    		ERR_MAX_JOIN_REACHED,                 //The capacity of MAX JOIN is reached
    		ERR_CANT_MOVE_CHUNK,                  //The chunk can't be moved                             20
    		ERR_CANT_MOVE_SEGMENT,                //The segment can't be moved
    		ERR_CANT_GET_CHUNK_IDS_OF_SEGMENT,    //No chunk ids for a segment is found
    		ERR_CANT_FIND_TCLUES_OF_SEGMENT,      //The segment clues is not found
    		ERR_GET_CHUNKS_DESCRIPTION_OF_SEGMENT,//The chunk description is not found
    		ERR_CANT_GET_NGRAM_DESCRIPTION,       //The ngram description is not found
    		ERR_CANT_CREATE_SEGMENT,              //The segment can't be created
    		ERR_CANT_GET_SEGMENT_LAYOUT,          //The segment layout is not found
    		ERR_CANT_GET_SEGMENT_STATISTICS,      //The segment statistics are not found
    		ERR_CANT_GET_SEGMENT_DESCRIPTION,     //The segment description is not found
    		ERR_CANT_GET_LIST_OF_LEMMA_DESCRIPTION_FROM_SEGMENT, //The list of lemma description is not found
    		ERR_ANALYSE_CSEGMENTATION,
    		ERR_OPTION_MANAGER,
    		NUMBER_OF_ERROR,
    	};
    
    
    	public enum class enModuleIDM
    	{
    		MODULE_ID_NULL = 0,
    		MODULE_ID_ALN_KERNEL,
    		MODULE_ID_DBMS_MANAGER,
    		MODULE_ID_MDB_MANAGER,
    		MODULE_ID_ALIGNMENT,
    		MODULE_ID_ANALYSER,
    		MODULE_ID_DOCUMENT_MANAGER,
    		MODULE_ID_HTML_READER,
    		MODULE_ID_NARA_MANAGER,
    		MODULE_ID_PARSER_MANAGER,
    		MODULE_ID_WORD_READER,
    		MODULE_ID_XELDA_MANAGER,
    		MODULE_ID_XML_READER,
    		MODULE_ID_EVENT_MANAGER,
    		MODULE_ID_INI_FILE_MANAGER,
    		MODULE_ID_OPTION_MANAGER,
    		MODULE_ID_REPORT_MANAGER,
    		MODULE_ID_TEXT_FILE_MANAGER,
    		MODULE_ID_STATISTIC_MANAGER,
    		NUMBER_OF_MODULE_ID
    	};
    	
    	public enum class enTYPEM
    	{
    		TYPE_NULL = 0,	    	      //	The initialisation type
    		TYPE_INFO,	    	          //	The info type
    		TYPE_WARNING,	              //	The warning type
    		TYPE_ERROR,	    	          //	The error type
    		NUMBER_OF_TYPE                //    the number of type
    	};
    
    	public enum class enLanguageM
    	{
    		LANGUAGE_NONE,                                        //  Undefined language
    		LANGUAGE_FRENCH,                                      //  French
    		LANGUAGE_ENGLISH,                                     //  English
    		LANGUAGE_SPANISH,                                     //  Spanish
    		LANGUAGE_ITALIAN,                                     //  Italian
    		LANGUAGE_GERMAN,                                      //  German
    		NUMBER_OF_LANGUAGE
    	};
    
    	public enum class enDATABASE_TYPE
    	{
    		ZERO,
    		ONE,
    		TWO,
    		THREE,
    	};
    
    	public enum class enDATABASE_STATUS
    	{
    		DATABASE_CONNECTED,
    		DATABASE_DISCONNECTED,
    	};
    
    	public enum class enSERVER_STATUS
    	{   //Status of the server
    		SERVER_NONE = 0,             //Undefined
    		SERVER_CONNECTED,            //Connected to this server
    		SERVER_DISCONNECTED,         //Not connected to this server
    	};
    
    	enum enDatabaseServerM
    	{
    		DATABASESERVER_NONE = 0,                              //  Undefined Database server
    		DATABASESERVER_INTERBASE_6_0,                         //  Interbase server
    		DATABASESERVER_SQL_EXPRESS,
    		NUMBER_OF_DATABASESERVER,
    };
    	
    	public enum class enInArray
    	{
    		IN_ARRAY_NULL,          //  DOJ JUST for coding homogeneity
    		IN_ARRAY_TRUE,          //  the element is in Array
    		IN_ARRAY_FALSE,         //  the element is not in Array
    		NUMBER_OF_IN_ARRAY
    	};
    
    	public enum class enBold
    	{
    		BOLD_NULL,					//	the whole element is not in bold, it is not homogeneous
    		BOLD_TRUE,					//	the element is in bold
    		BOLD_FALSE,					//	the element is not in bold
    		NUMBER_OF_BOLD
    	};
    
    	public enum class enItalic
    	{
    		ITALIC_NULL,				//	the whole element is not in Italic, it is not homogeneous
    		ITALIC_TRUE,				//	the element is in Italic
    		ITALIC_FALSE,				//	the element is not in Italic
    		NUMBER_OF_ITALIC
    	};
    
    	public enum class enUnderline
    	{
    		UNDERLINE_NULL,			//	the whole element is not in Underline, it is not homogeneous
    		UNDERLINE_TRUE,			//	the element is in Underline
    		UNDERLINE_FALSE,		//	the element is not in Underline
    		NUMBER_OF_UNDERLINE
    	};
    
    	public enum class enUppercase
    	{
    		UPPERCASE_NULL,			//	the whole element is not in Uppercase, it is not homogeneous
    		UPPERCASE_TRUE,			//	the element is in Uppercase
    		UPPERCASE_FALSE,		//	the element is not in Uppercase
    		NUMBER_OF_UPPERCASE
    	};
    
    	public enum class enColorM
    	{
    		COLOR_NONE,
    		COLOR_BLACK,
    		COLOR_RED,
    		COLOR_ORANGE,
    		COLOR_YELLOW,
    		COLOR_GREEN,
    		COLOR_BLUE,
    		COLOR_VIOLET,
    		COLOR_WHIGHT,
    		NUMBER_OF_COLOR,
    	};
    
    	public enum class enGenderM
    	{
    		GENDER_NONE,
    		GENDER_MASCULINE,
    		GENDER_FEMININE,
    		GENDER_NEUTER,
    		NUMBER_OF_GENDER,
    	};
    
    	public enum class enFlexNumberM
    	{
    		NUMBER_NONE,
    		FLEX_SING,
    		FLEX_PLUR,
    		NUMBER_OF_NUMBER,
    	};
    
    	public enum class enPersM
    	{
    		PERS_NONE,
    		PERS_1,
    		PERS_2,
    		PERS_3,
    		NUMBER_OF_PERS,
    	};
    
    	public enum class enNbrM
    	{
    		NBR_NONE,
    		NBR_SING,
    		NBR_PLUR,
    	};
    
    	public enum class enPOSM
    	{
    		POS_NONE,								//	Undefined                   0
    		POS_PREP,								//	Preposition                 1
    		POS_ART,								//	Article                     2
    		POS_ADJ,								//	Adjective                   3
    		POS_NOUN,								//	Noun                        4
    		POS_NB,								//	Number                      5
    		POS_MARK,								//	Mark                        6
    		POS_SENT,								//	Sentence point              7
    		POS_STOPMARK,							//	Mark of end of sentence     8
    		POS_COMMA,							//	virgule                     9
    		POS_CONJ,								//	Conjunction                 10
    		POS_PRONOUN,							//	Pronoun                     11
    		POS_VERB,								//	Verb                        12
    		POS_AUX,								//	Auxiliary                   13
    		POS_ADV,								//	Adverb                      14
    		POS_PAST_PARTICIPLE,	                //	Participe passé             15
    		POS_PRESENT_PARTICIPLE,					//  Participe présent           16
    		POS_BLANK,								//	Blank                       17
    		POS_ABREV,								//  Abreviations                18
    		POS_NAMED_ENTITY,						//  Noms propre et Entitée nomée19
    		POS_DECLENCHEUR,						//  mots servant à repèrer les préconditions 20
    		POS_DECLENCHEUR_MOT,					//  noms déclanchant            21
    		POS_PIVOT,								//  mot continuant un syntagme  22
    		POS_SEMI_COLUMN,						//  deux points                 23
    		POS_PASSIVE,							//  mot introduisnat une forme passive 24
    		POS_COLOR,								//  couleurs normalisées        25
    		POS_OTHER,								//  Other POS                   26
    		NUMBER_OF_POS,
    	};
    	
    	public enum class enElementSemantiqueM
    	{
    		ELEMENT_NONE,								  //0
    		ELEMENT_PREDICAT,                            //1
    		ELEMENT_PREDICAT_QUALIFIANT,                 //2
    		ELEMENT_PRECONDITION,                        //3
    		ELEMENT_QUALIFICATEUR,                       //4
    		ELEMENT_COMMENTAIRE,                         //5
    		ELEMENT_TITLE,                               //6
    		ELEMENT_OTHER,                               //7
    		NUMBER_OF_ELEMENT
    	};
    
    	
    	public enum class enChunkTypeM
    	{
    		CHUNKTYPE_NONE,                                       // 0 Undefined chunk type
    		CHUNKTYPE_VERB,                                       // 1
    		CHUNKTYPE_NOUN,                                       // 2
    		CHUNKTYPE_FUNCT,                                      // 3
    		CHUNKTYPE_DECLENCHEUR,                                // 4
    		CHUNKTYPE_QUALIFICATEUR,                              // 5
    		CHUNKTYPE_PASSIVE,                                    // 6
    		CHUNKTYPE_OTHER,                                      // 7
    		NUMBER_OF_CHUNKTYPE                                   // 8
    	};
    	
    	public enum class enStatusM
    	{
    		STATUS_NONE,                                          //  weak words   0
    		STATUS_NORMAL,                                        //  NormalWords  1
    		STATUS_BIS,                                           //  doubleWords  2
    		STATUS_NB,                                            //               3
    		STATUS_PROPER,                                        //  ProperNoun   4
    		STATUS_NOT_DEFINED2,                                  //               5
    		STATUS_REGULAR,                                       //  The lemma is an identifier  6
    		STATUS_UNDEFINED,
    		STATUS_NEGATIVE,                                      //  The word  holds a negative form  8
    		STATUS_EXCLUDED,
    		STATUS_NOT_ALIGNED,
    		STATUS_MAN_ALIGNED,
    		STATUS_AUTO_ALIGNED,
    		STATUS_FORMER_ALIGNED,
    		NUMBER_OF_STATUS
    	};
    
    	public enum class enFonctionM
    	{
    		FONCTION_NONE,     //0
    		FONCTION_SUJET,
    		FONCTION_PREDICAT,
    		FONCTION_OBJET,
    		FONCTION_VERB,
    		FONCTION_PIVOT,     //5
    		FONCTION_CONJ,
    		FONCTION_SUBSTANTIF,
    		FONCTION_DECLENCHEUR,
    		FONCTION_IDENTIFIANT,
    		FONCTION_FUNCT,     //10
    		FONCTION_ART,
    		FONCTION_NOUN,
    		FONCTION_QUALIFICATEUR,
    		FONCTION_PASSIVE,
    		FONCTION_TITLE,
    		FONCTION_UNKNOWN,
    		NUMBER_OF_FUNCTIONS
    	};
    
    #endif


    Jean Noël Martin

    dimanche 12 juillet 2015 13:59

Réponses

Toutes les réponses