equal
deleted
inserted
replaced
30 #include "configmanager.h" |
30 #include "configmanager.h" |
31 #include "sisfile.h" |
31 #include "sisfile.h" |
32 #include "sisregistryobject.h" |
32 #include "sisregistryobject.h" |
33 #include "logger.h" |
33 #include "logger.h" |
34 #include "version.h" |
34 #include "version.h" |
|
35 #include "is_utils.h" |
35 |
36 |
36 // ExpressionResult |
37 // ExpressionResult |
37 using namespace Utils; |
38 using namespace Utils; |
38 ExpressionResult::ExpressionResult(const std::wstring& aString) |
39 ExpressionResult::ExpressionResult(const std::wstring& aString) |
39 : iType(EString), iString(&aString) |
40 : iType(EString), iString(&aString) |
358 if(aLogInfo) |
359 if(aLogInfo) |
359 { |
360 { |
360 std::ostringstream stream; |
361 std::ostringstream stream; |
361 stream << "\tIF EXISTS(\'" << narrowFileName << "\') => " << fileExists; |
362 stream << "\tIF EXISTS(\'" << narrowFileName << "\') => " << fileExists; |
362 std::string msg = stream.str(); |
363 std::string msg = stream.str(); |
363 std::wstring finalMessage = string2wstring( msg ); |
364 std::wstring finalMessage = string2wstring( msg ); |
364 LINFO( finalMessage ); |
365 LINFO( finalMessage ); |
365 } |
366 } |
366 // |
367 // |
367 return fileExists; |
368 return fileExists; |
368 } |
369 } |
423 if(aLogInfo) |
424 if(aLogInfo) |
424 { |
425 { |
425 std::ostringstream stream; |
426 std::ostringstream stream; |
426 stream << "Input language " << result << " is not supported by SIS file. Using first language " <<firstLanguage; |
427 stream << "Input language " << result << " is not supported by SIS file. Using first language " <<firstLanguage; |
427 std::string msg = stream.str(); |
428 std::string msg = stream.str(); |
428 std::wstring finalMessage = string2wstring( msg ); |
429 std::wstring finalMessage = string2wstring( msg ); |
429 LWARN( finalMessage ); |
430 LWARN( finalMessage ); |
430 } |
431 } |
431 result = firstLanguage; |
432 result = firstLanguage; |
432 } |
433 } |
433 } |
434 } |
434 if(aLogInfo) |
435 if(aLogInfo) |
435 { |
436 { |
436 std::ostringstream stream; |
437 std::ostringstream stream; |
437 stream << "\tIF " << attributeName << " ... where [" << attributeName << " = " << result << "]"; |
438 stream << "\tIF " << attributeName << " ... where [" << attributeName << " = " << result << "]"; |
438 std::string msg = stream.str(); |
439 std::string msg = stream.str(); |
439 std::wstring finalMessage = string2wstring( msg ); |
440 std::wstring finalMessage = string2wstring( msg ); |
440 LINFO( finalMessage ); |
441 LINFO( finalMessage ); |
441 } |
442 } |
442 } |
443 } |
443 else if ( aVariableId == KVariableLanguage ) |
444 else if ( aVariableId == KVariableLanguage ) |
444 { |
445 { |