int CconvCDedRosenFileData::CDedRosenFileData_from_OuPropertiesText( CDedRosenFileData* pCDedRosenFileData , const OuPropertiesText::CNodeContainer* pCNodeContainer , OuPropertiesText::ErrorInfo::COuErrorInfoContainer* pCOuErrorInfoContainer ) { int iRv = 0 ; if ( iRv >= 0 ) { int iResult = isEncodeAbleFormat( pCNodeContainer ) ; if ( iResult < 0 ) { COuErrorInfo aCOuErrorInfo( ERRREASON_FileTypeIsInvalid() ) ; aCOuErrorInfo.getProp()->setValue( ERRPROP_FileType() , pCNodeContainer->getValue( nameFileType ) ) ; pCOuErrorInfoContainer->insert( aCOuErrorInfo ) ; iRv = -1 ; // FileType が正しくありません。 } } if ( iRv >= 0 ) { pCDedRosenFileData->clear() ; } //1.Rosen if ( iRv >= 0 ) { Ou<const CDirectory> pCDirectory = dynamic_castOu<const CDirectory>( pCNodeContainer->getInName( nameRosen , 0 ) ) ; if ( pCDirectory == NULL ) { COuErrorInfo aCOuErrorInfo( ERRREASON_RosenDirectoryIsNotFound() ) ; pCOuErrorInfoContainer->insert( aCOuErrorInfo ) ; iRv = -2 ; // Rosen Directoryが見つかりません。 } else { CentDedRosen aCentDedRosen ; CconvCentDed aCconvCentDed ; int iResult = aCconvCentDed.CentDedRosen_From_OuPropertiesText( &aCentDedRosen , pCDirectory->getIfNodeContainerConst() , pCOuErrorInfoContainer ) ; //- -11 ; // Ekimei が指定されていません。 //- -22 ; // Ekijikokukeisiki の値が不正です。 //- -32 ; // Ekikibo の値が不正です。 //- -101 ; // Eki がディレクトリではありません。 //- -111 ; // Syubetsumei が指定されていません。 //- -152 ; // DiagramSenStyle の値が不正です。 //- -201 ; // Ressyasyubetsu がディレクトリではありません。 //- -211 ; // DiaName が指定されていません。 //- -212 ; // RessyaContが見つかりません。 //- -352 ; // 起点時刻の設定が不適切です。 if ( iResult < 0 ) { //- -11 ; // Ekimei が指定されていません。 //- -22 ; // Ekijikokukeisiki の値が不正です。 //- -32 ; // Ekikibo の値が不正です。 //- -101 ; // Eki がディレクトリではありません。 //- -111 ; // Syubetsumei が指定されていません。 //- -152 ; // DiagramSenStyle の値が不正です。 //- -201 ; // Ressyasyubetsu がディレクトリではありません。 //- -211 ; // DiaName が指定されていません。 //- -212 ; // RessyaContが見つかりません。 //- -352 ; // 起点時刻の設定が不適切です。 iRv = iResult ; } else { *pCDedRosenFileData->getCentDedRosen() = aCentDedRosen ; } } } //2.DispProp if ( iRv >= 0 ) { Ou<const CDirectory> pCDirectory = dynamic_castOu<const CDirectory>( pCNodeContainer->getInName( nameDispProp , 0 ) ) ; if ( pCDirectory == NULL ) { COuErrorInfo aCOuErrorInfo( ERRREASON_DispPropnDirectoryIsNotFound() ) ; pCOuErrorInfoContainer->insert( aCOuErrorInfo ) ; iRv = -3 ; // DispProp Directoryが見つかりません。 } else { CconvCdDedDispProp aCconvCdDedDispProp ; CdDedDispProp aCdDedDispProp ; int iResult = aCconvCdDedDispProp.fromOuPropertiesText( &aCdDedDispProp , pCDirectory->getIfNodeContainerConst() , pCOuErrorInfoContainer ) ; //- -12 ; // JikokuhyouFont の内容が不正です。 //- -22 ; // DiaEkimeiFont の内容が不正です。 //- -32 ; // DiaJikokuFont の内容が不正です。 //- -82 ; // DisplayRessyabangou が不正です。 //- -92 ; // DisplayRessyamei が不正です。 //- -102 ; // DiaRessyajouhouHyoujiEkiOrderKudari が不正です。 //- -112 ; // DiaRessyajouhouHyoujiEkiOrderNobori が不正です。 if ( iResult < 0 ) { //- -512 ; // JikokuhyouFont の内容が不正です。 //- -522 ; // DiaEkimeiFont の内容が不正です。 //- -532 ; // DiaJikokuFont の内容が不正です。 //- -582 ; // DisplayRessyabangou が不正です。 //- -592 ; // DisplayRessyamei が不正です。 //- -602 ; // DiaRessyajouhouHyoujiEkiOrderKudari が不正です。 //- -612 ; // DiaRessyajouhouHyoujiEkiOrderNobori が不正です。 iRv = -500 ; // DispProp の内容が不正 } else { pCDedRosenFileData->setCdDedDispProp( aCdDedDispProp ) ; } } } return ( iRv ) ; }