\brief Returns the version of muparser. \param eInfo A flag indicating whether the full version info should be returned or not. Format is as follows: "MAJOR.MINOR (COMPILER_FLAGS)" The COMPILER_FLAGS are returned only if eInfo==pviFULL. */
| 306 | are returned only if eInfo==pviFULL. |
| 307 | */ |
| 308 | string_type ParserBase::GetVersion(EParserVersionInfo eInfo) const |
| 309 | { |
| 310 | stringstream_type ss; |
| 311 | |
| 312 | ss << ParserVersion; |
| 313 | |
| 314 | if (eInfo == pviFULL) |
| 315 | { |
| 316 | ss << _T(" (") << ParserVersionDate; |
| 317 | ss << std::dec << _T("; ") << sizeof(void*) * 8 << _T("BIT"); |
| 318 | |
| 319 | #ifdef _DEBUG |
| 320 | ss << _T("; DEBUG"); |
| 321 | #else |
| 322 | ss << _T("; RELEASE"); |
| 323 | #endif |
| 324 | |
| 325 | #ifdef _UNICODE |
| 326 | ss << _T("; UNICODE"); |
| 327 | #else |
| 328 | #ifdef _MBCS |
| 329 | ss << _T("; MBCS"); |
| 330 | #else |
| 331 | ss << _T("; ASCII"); |
| 332 | #endif |
| 333 | #endif |
| 334 | |
| 335 | #ifdef MUP_USE_OPENMP |
| 336 | ss << _T("; OPENMP"); |
| 337 | #endif |
| 338 | |
| 339 | ss << _T(")"); |
| 340 | } |
| 341 | |
| 342 | return ss.str(); |
| 343 | } |
| 344 | |
| 345 | //--------------------------------------------------------------------------- |
| 346 | /** \brief Add a value parsing function. |