Commit Graph

69 Commits

Author SHA1 Message Date
7cba5cc109 Fixed line endings and applied gitignore 2014-07-26 09:43:40 +03:00
Brian Ferguson
1a345f1ad8 Fixed bug in 1383c04 2014-01-01 09:14:49 -07:00
Brian Ferguson
1383c046e0 MeasureCalc - Limit the amount of unique random numbers to preserve memory. The limit is set at 65535, which "should" be enough. 2014-01-01 08:59:39 -07:00
Birunthan Mohanathas
a577608835 Unignore and fix warnings in Library/ 2013-12-23 19:42:31 +00:00
Birunthan Mohanathas
98b00cc73a Cosmetics 2013-12-08 15:07:45 +02:00
Birunthan Mohanathas
f5fb87f336 Calc: Use std::mt19937 with a deterministic seed as the random engine 2013-12-08 15:06:01 +02:00
Birunthan Mohanathas
ec9c2ef598 Reapply accidentally reverted changes in 3b1dfba 2013-12-08 13:44:03 +02:00
Birunthan Mohanathas
1eb46ae448 Calc: Minor tweaks 2013-12-08 13:41:19 +02:00
Birunthan Mohanathas
3383713853 Calc: Make std::default_random_engine static 2013-12-08 13:40:48 +02:00
Brian Ferguson
3b1dfbac7e MeasureCalc: Fixed error message from repeating when HighBound is smaller than LowBound 2013-12-06 20:55:50 -07:00
Birunthan Mohanathas
4e936e5365 Tweaks 2013-11-10 19:41:21 +02:00
Brian Ferguson
dfc804d50e MeasureCalc: Allow for LowBound to equal HighBound. If LowBound is greater then HighBound, set HighBound equal to LowBound (and show error). 2013-08-19 14:41:45 -06:00
Brian Ferguson
cd140ff0f6 MeasureCalc: Only report "HighBound" error message after initial update 2013-08-16 13:19:22 -06:00
Brian Ferguson
9c2d75ce69 Removed test code from a3a464b 2013-08-16 13:00:53 -06:00
Brian Ferguson
a3a464b9cf Fixed resetting of internal bounds in f414b5f 2013-08-16 12:58:16 -06:00
Brian Ferguson
f414b5feba MeasureCalc: Added "UniqueRandom" option. When "1", random numbers are only used once within the range {LowBound, HighBound}.
Also updated the URNG (Uniform Random Number Generator) engine to the C++11 library <random>.
2013-08-15 18:12:36 -06:00
Birunthan Mohanathas
923215c0da ConfigParser: Implement ReadBool
This may break backwards compatibility in some cases. For example, the FreeDiskSpace measure treated only `Type=1` as true and `Type={0, 2, 3, ...}` as false. Now `Type=0` is false and everything else is true like with most other boolean options.
2013-07-31 13:36:53 +03:00
Brian Ferguson
eeef84dfa0 Added skin/section (if available) to logging. 2013-06-29 10:59:18 -06:00
Birunthan Mohanathas
be3efa7531 Move MathParser to Common 2013-06-13 17:00:24 +03:00
Birunthan Mohanathas
1934c5db72 Change NULL to nullptr 2013-05-31 17:28:39 +03:00
Birunthan Mohanathas
da9384cfad Remove "C" prefix in class names 2013-05-31 17:18:52 +03:00
Birunthan Mohanathas
a3d8f73f6c Tweak f4429ad 2013-05-30 17:19:42 +03:00
Birunthan Mohanathas
f4429ad8cc Refactor logging logic into new CLogger class 2013-05-29 22:05:41 +03:00
Birunthan Mohanathas
f2b52b4204 Fixed that meters were initialized before measures 2012-07-18 08:19:01 +03:00
Birunthan Mohanathas
daadf799ce Calc: Fixed int overflow with Random when using large bounds 2012-06-03 11:24:19 +03:00
Birunthan Mohanathas
922dd098c9 Cosmetics: Changed "config" to more consistent and descriptive terms 2012-06-01 16:06:36 +03:00
Birunthan Mohanathas
e3d92d354c Cosmetics 2012-05-30 21:53:44 +03:00
Birunthan Mohanathas
9623766a61 Fixed: IfActions not fired when measure is disabled 2012-05-30 09:46:11 +03:00
Birunthan Mohanathas
1a5f77254b Improved 8dd9b8e fix to handle temporary division by 0 cases 2012-04-07 10:06:58 +03:00
Birunthan Mohanathas
8dd9b8e6f5 Changed Calc errors to be reported only once (not on each update) 2012-04-06 21:04:57 +03:00
Birunthan Mohanathas
ea67809d9b Replaced throw with Log where possible 2012-04-06 19:54:20 +03:00
Birunthan Mohanathas
bb44c29f6c Cosmetic changes to function comment blocks. 2012-02-20 19:10:40 +00:00
Birunthan Mohanathas
0fec35edaa Cosmetics. 2012-02-20 14:49:38 +00:00
Birunthan Mohanathas
e99403ce1e Tweaks. 2012-01-23 09:35:32 +00:00
Birunthan Mohanathas
33d447a907 MathParser: Converted to use WCHAR. 2012-01-23 09:30:51 +00:00
Birunthan Mohanathas
01b22e2d5e Calc/MathParser: Minor tweaks. 2012-01-23 07:21:03 +00:00
spx
ebec08914a Adjusted copyright notice.
http://www.gnu.org/licenses/gpl-2.0.html
2012-01-23 06:36:15 +00:00
Birunthan Mohanathas
caf0a60a5b Removed ccalc and replaced with MathParser 2012-01-22 20:28:05 +00:00
Birunthan Mohanathas
13b3241307 Minor tweaks and cleanup. 2011-12-09 08:40:19 +00:00
spx
2835739b12 Code tweaks and cleanup. 2011-12-09 03:28:19 +00:00
spx
8e8b7d1268 Code tweaks and cleanup. 2011-12-04 22:18:40 +00:00
spx
34005f14a4 Switched from std::wstring.compare() to wcscmp(). 2011-11-27 08:30:39 +00:00
Birunthan Mohanathas
1e9d424c99 Made log messages more consistent. 2011-11-09 09:27:06 +00:00
Birunthan Mohanathas
f8f31a527e Switched from _snwprintf_s to _itow_s where possible. 2011-11-09 08:52:32 +00:00
spx
614eef6c3b - Added some info to error message from MathParser.
- Cosmetic changes.
2011-08-29 21:57:36 +00:00
Birunthan Mohanathas
a92bdd9b18 Cosmetic changes to code. 2011-03-29 19:21:57 +00:00
spx
fe9fd9f476 Code cleanup. 2011-02-15 16:26:54 +00:00
spx
7ea3a762ac - Fixed that r716 (precompiled header) doesn't work on x64.
- Now uses constructor initialization list in each class.
- TintedImage: Code cleanup.
2011-01-29 00:11:01 +00:00
spx
0ad2ef9414 Code cleanup. 2011-01-24 10:15:05 +00:00
spx
f4bfe8f4fc - Added #CURRENTSECTION# variable.
For instance:
-----
[Variables]
Var=#CURRENTSECTION#

[StyleString]
Text=#CURRENTSECTION#

[MeterString]
Meter=String
MeterStyle=StyleString
Prefix="#CURRENTSECTION# / "
Postfix=" / #Var#"
-----
Displays:
MeterString / MeterString / Variables

- Additional changes for r677.
* Obsoleted DebugLog(). Use LogWithArgs() with LOG_DEBUG instead.
* Added Log().
2010-12-20 08:57:37 +00:00