Changeset 1360 in 3DVCSoftware for branches/HTM-15.2-dev/source/Lib/TLibRenderer
- Timestamp:
- 28 Oct 2015, 17:46:00 (9 years ago)
- Location:
- branches/HTM-15.2-dev/source/Lib/TLibRenderer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-15.2-dev/source/Lib/TLibRenderer/TRenModSetupStrParser.cpp
r1313 r1360 153 153 154 154 Void 155 TRenModSetupStrParser::setString( Int iNumOfBaseViews, Char* pchSetStr )155 TRenModSetupStrParser::setString( Int iNumOfBaseViews, TChar* pchSetStr ) 156 156 { 157 157 for (Int iContent = 0; iContent < 2; iContent++) … … 178 178 TRenModSetupStrParser::xParseString() 179 179 { 180 Char cChar;180 TChar cChar; 181 181 xGetNextChar(cChar); 182 182 while( cChar != '\0' ) … … 220 220 m_bCurrentViewSet = false; 221 221 222 Char cChar;222 TChar cChar; 223 223 xGetNextCharGoOn( cChar ); 224 224 xError( cChar != '[' ); … … 249 249 250 250 Void 251 TRenModSetupStrParser::xReadViews( Char cType )252 { 253 Char cChar;251 TRenModSetupStrParser::xReadViews( TChar cType ) 252 { 253 TChar cChar; 254 254 xGetNextCharGoOn( cChar ); 255 255 xError( cChar != '(' ); … … 272 272 273 273 Void 274 TRenModSetupStrParser::xReadViewInfo( Char cType )274 TRenModSetupStrParser::xReadViewInfo( TChar cType ) 275 275 { 276 276 std::vector<Int> aiViewNums; … … 280 280 { 281 281 case 'B': 282 Char cVideoType;283 Char cDepthType;282 TChar cVideoType; 283 TChar cDepthType; 284 284 285 285 xGetNextCharGoOn ( cVideoType ); … … 317 317 case 'L': 318 318 case 'R': 319 Char cRefType;319 TChar cRefType; 320 320 xGetNextCharGoOn ( cRefType ); 321 321 xGetViewNumberRange( aiViewNums ); … … 328 328 329 329 Void 330 TRenModSetupStrParser::xAddBaseView( Int iViewIdx, Char cVideoType,Char cDepthType )330 TRenModSetupStrParser::xAddBaseView( Int iViewIdx, TChar cVideoType, TChar cDepthType ) 331 331 { 332 332 AOF( m_bCurrentViewSet ); … … 334 334 if ( cDepthType == 'x' ) cDepthType = 'o'; 335 335 if ( cVideoType == 'x' ) cVideoType = 'o'; 336 337 338 336 339 337 xError( cDepthType != 'o' && cDepthType != 'c' && cVideoType != 'r' ); 340 338 xError( cVideoType != 'o' && cVideoType != 'c' && cVideoType != 'r' ); … … 346 344 347 345 Void 348 TRenModSetupStrParser::xAddSynthView( Int iViewNum, Char cType,Char cRefType )346 TRenModSetupStrParser::xAddSynthView( Int iViewNum, TChar cType, TChar cRefType ) 349 347 { 350 348 AOF( m_bCurrentViewSet ); … … 399 397 size_t iStartPos; 400 398 size_t iEndPos; 401 Char cChar;399 TChar cChar; 402 400 xGetNextCharGoOn(cChar ); 403 401 if (cChar == '{') … … 424 422 425 423 size_t iNumElem = iEndPos - iStartPos + 1; 426 Char* pcTempBuffer = newChar[ iNumElem + 1];424 TChar* pcTempBuffer = new TChar[ iNumElem + 1]; 427 425 strncpy( pcTempBuffer, m_pchSetStr + iStartPos, iNumElem ); 428 426 pcTempBuffer[iNumElem] = '\0'; … … 433 431 434 432 Void 435 TRenModSetupStrParser::xGetNextCharGoOn( Char& rcNextChar )433 TRenModSetupStrParser::xGetNextCharGoOn( TChar& rcNextChar ) 436 434 { 437 435 while ( m_pchSetStr[m_iPosInStr] == ' ' || m_pchSetStr[m_iPosInStr] == ',' ) … … 445 443 446 444 Void 447 TRenModSetupStrParser::xGetNextChar( Char& rcNextChar )445 TRenModSetupStrParser::xGetNextChar( TChar& rcNextChar ) 448 446 { 449 447 size_t iPos = m_iPosInStr; -
branches/HTM-15.2-dev/source/Lib/TLibRenderer/TRenModSetupStrParser.h
r1356 r1360 92 92 TRenModSetupStrParser(); 93 93 94 Void setString( Int iNumOfBaseViews, Char* pchSetStr );94 Void setString( Int iNumOfBaseViews, TChar* pchSetStr ); 95 95 96 96 private: … … 112 112 Int m_iNumberOfModels; 113 113 114 Char* m_pchSetStr;114 TChar* m_pchSetStr; 115 115 size_t m_iPosInStr; 116 116 … … 118 118 Void xParseString(); 119 119 Void xParseSourceView(); 120 Void xReadViews ( Char cType );121 Void xReadViewInfo ( Char cType );122 Void xAddBaseView ( Int iViewIdx, Char cVideoType,Char cDepthType );123 Void xAddSynthView ( Int iViewNum, Char cType,Char cRefType );120 Void xReadViews ( TChar cType ); 121 Void xReadViewInfo ( TChar cType ); 122 Void xAddBaseView ( Int iViewIdx, TChar cVideoType, TChar cDepthType ); 123 Void xAddSynthView ( Int iViewNum, TChar cType, TChar cRefType ); 124 124 Void xError ( Bool bIsError ); 125 125 Void xGetViewNumberRange( std::vector<Int>& raiViewNumbers ); 126 Void xGetNextCharGoOn ( Char& rcNextChar );127 Void xGetNextChar ( Char& rcNextChar );126 Void xGetNextCharGoOn ( TChar& rcNextChar ); 127 Void xGetNextChar ( TChar& rcNextChar ); 128 128 }; 129 129
Note: See TracChangeset for help on using the changeset viewer.