Changeset 1386 in 3DVCSoftware for trunk/source/Lib/TLibRenderer/TRenModSetupStrParser.cpp
- Timestamp:
- 13 Nov 2015, 16:29:39 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/Lib/TLibRenderer/TRenModSetupStrParser.cpp
r1313 r1386 37 37 #include "TRenModSetupStrParser.h" 38 38 39 #if NH_3D 39 #if NH_3D_VSO 40 40 Int 41 41 TRenModSetupStrParser::getNumOfModels() … … 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;
Note: See TracChangeset for help on using the changeset viewer.