Klaus Basan
dd687b7d90
Cppcheck and unit test fixes
2018-08-07 20:39:06 +02:00
Klaus Basan
1f9f148519
Status message fix, copy timestamp in assigmnet operator
...
* the timestamp of status message was not copied, so every time a status message was sorted or otherwise assigned the ts got lost or wrongly assigned.
* this meant the log messages were in wrong order, leading to very confusing results in the log screen or file.
* also added new timestamp formatter
* new function "BlackMisc::CVariant displayRole(const PQ &pq) const" which can be used if the PQ is already available
2018-05-12 21:40:27 +02:00
Klaus Basan
6c50c4ea72
Formatting, minor tweaks
2018-05-12 21:40:23 +02:00
Klaus Basan
77cd49cb0f
Ref T215, severity can be set for validation
2018-01-13 05:04:05 +01:00
Mathew Sutcliffe
047b9279b6
Provide CMessageBase::log for logging with severity configurable as parameter
...
Summary: Ref T198
Reviewers: kbasan, #swift_developers
Reviewed By: kbasan
Subscribers: jenkins
Tags: #swift_pilot_client
Maniphest Tasks: T198
Differential Revision: https://dev.swift-project.org/D64
2017-11-23 22:15:46 +00:00
Mathew Sutcliffe
921ef30eda
Use C++14 features to simplify our container base classes
...
Summary: Using C++14 function return type deduction we can simplify the CRTP in CContainerBase etc.
Reviewers: #swift_developers, rwinklmeier
Reviewed By: #swift_developers, rwinklmeier
Subscribers: jenkins
Tags: #swift_pilot_client
Differential Revision: https://dev.swift-project.org/D65
2017-11-23 21:59:09 +00:00
Mathew Sutcliffe
23becf9619
Ref T184 Use CTokenBucket to throttle identical log messages.
2017-11-12 13:48:04 +00:00
Klaus Basan
782639e7c9
Allow to use status message debug() with << like info(), ...
...
Slack discussion: https://swift-project.slack.com/archives/C04J6J76N/p1504372206000004
2017-09-24 19:54:00 +01:00
Klaus Basan
224c61c7e9
Ref T108, avoid duplicates in status message categories
...
and using string builder in CStatusMessage::convertToQString
2017-09-24 19:50:27 +01:00
Mathew Sutcliffe
b20ebd6dfd
refs #937 Resolved clazy warnings: rule of three.
2017-04-19 19:31:44 +01:00
Mathew Sutcliffe
3ea9e33e6b
refs #937 Resolved clazy warnings: pass-by-value/reference.
2017-04-19 19:31:42 +01:00
Mathew Sutcliffe
4f6d3ed3a3
refs #815 Added convertFromJsonNoThrow methods which catch CJsonException and return CStatusMessage.
2017-01-10 23:46:34 +00:00
Klaus Basan
8341da2310
refs #846 , support message as HTML
2017-01-10 23:45:57 +00:00
Klaus Basan
24bf0b940f
refs #506 , utility function for status message
2017-01-10 23:45:45 +00:00
Mathew Sutcliffe
a0c20baf53
refs #697 Type traits renamed with T prefix.
2016-08-03 02:20:45 +01:00
Klaus Basan
0be85cf4fe
refs #649 , do not init to current timestamp follow up
...
Removed inherited constructors since I need to call non-default ITimestampBased constructor
In extra commit so I can replace it when there is a better solution
2016-06-08 03:59:07 +02:00
Roland Winklmeier
d0313c7524
Style
2016-05-20 01:31:26 +02:00
Klaus Basan
0f5d2a29a8
refs #655 , Change signature (order) of setProperty/compareProperty
2016-05-13 16:44:17 +02:00
Klaus Basan
8da559a186
refs #642 , as proposed by MS
...
https://dev.vatsim-germany.org/issues/642#note-4
2016-05-07 20:11:40 +02:00
Klaus Basan
d0daad7d34
refs #642 , fixed setup loading, in same step refs #636 clear cache
...
* changed signals in setup reader
* explicit mode is default
* detailed information what is loaded
* new log pattern
* allow to add message list to log component
* allow to clear cache by cmd line arg
* consolidated cmd names
2016-05-05 20:49:13 +02:00
Klaus Basan
a4e7ccd25c
Fixed status message verification/validation
...
slack discussion MS/KB
2016-04-11 20:16:18 +02:00
Mathew Sutcliffe
4e9d7d3efe
refs #628 Metaclass style compatible with the AStyle beautifier.
2016-04-06 15:15:12 +01:00
Mathew Sutcliffe
4bd4baa535
refs #628 Use the metaclass mixins in all value classes.
2016-04-03 18:17:43 +01:00
Mathew Sutcliffe
7ce1b268df
refs #628 Use expression SFINAE and the void_t trick to simplify some type traits.
2016-04-03 18:17:37 +01:00
Klaus Basan
78b117cc6d
refs #618 , allow to directly create validation messages
...
Needed frequently, easier than always to join categories
2016-03-30 18:21:38 +02:00
Mathew Sutcliffe
a8fc899219
refs #624 Use std alias traits.
2016-03-22 16:02:48 +00:00
Mathew Sutcliffe
bb7cf80a20
Metatuple must ignore CStatusMessage::m_handledByObjects, as it doesn't know about the mutex.
2016-03-22 16:02:26 +00:00
Mathew Sutcliffe
caa01f846b
refs #624 , #492 Refactor parts of CLogMessage into base class and use inheriting constructors to unify the construction idiom of CLogMessage and CStatusMessage.
2016-03-22 00:31:09 +00:00
Klaus Basan
144ba62572
refs #601 , #600 , #485 Status message handling.
...
* follow up of debug session, added failure/success to status message
* return status messages instead of directly logging in functions returning CStatusMessage.
* Ignore empty preformatted messages.
* new log category
2016-03-17 19:45:04 +00:00
Roland Winklmeier
794bf0cd74
Fix doxygen copydoc documentation
...
The following issues were fixed
* Fixed wrong/missing namespaces
* Fixed obvious typos in documentation
* Documentation not in sync with source code
refs #544
2016-02-08 01:53:17 +01:00
Klaus Basan
b09dbd4828
refs #568 , improved display / sorting for status message categories
...
* display technical categories when no hr categories are available
* compare function for status message
2016-01-28 16:32:01 +01:00
Klaus Basan
3387caabdc
refs #562 , allow to validate models
...
* GUI part
* allow to merge a list of messages into one
* validation function
2016-01-28 16:27:32 +01:00
Mathew Sutcliffe
66fe290033
refs #567 CStatusMessageList::setCategories and related methods.
2016-01-27 23:37:43 +00:00
Klaus Basan
8f85c54989
refs #538 , Formatting, minor tweaks, comments
...
* new slot syntax in ATC station component
* formatting, comments
* tab order
* utility function for severity in status message
* null checks in threadutils
* invalidKey function in datastore
* changed data object keys (cached objets)
* added missing value object compare cases
* renamed timer in context network
* finder function for model list
* renamed getContainer to container (as it is just a reference)
2015-12-07 02:25:26 +01:00
Klaus Basan
d6733d49bb
refs #522 , mutex for mutable members (thread safe)
...
* copy/assignment/lock for mutable members
* also removed redundant in status message (slack discussion MS/KB)
2015-11-26 13:54:47 +01:00
Klaus Basan
a4ba45ce75
refs #522 , as preparation for mutable in status message
...
* added the new human readable patterns ( also for #506 )
* adjusted using functions
Meeting:
https://dev.vatsim-germany.org/boards/22/topics/2786?r=2787#message-2787
2015-11-26 13:54:45 +01:00
Mathew Sutcliffe
d13e863218
refs #472 Removed static_cast<int> for enums in blackmisc, no longer needed.
2015-11-19 21:02:16 +00:00
Mathew Sutcliffe
a102fc73b6
refs #466 Resolved TODO items in logging.
2015-11-19 21:00:59 +00:00
Klaus Basan
b5477c7c94
refs #452 , status messages
...
* DB support
* finders and convenience methods
2015-11-19 20:58:51 +00:00
Mathew Sutcliffe
ca9256be82
refs #450 Corrected emission of log messages from value cache validation.
2015-11-19 20:58:09 +00:00
Mathew Sutcliffe
2aef4a2881
refs #297 Added CStatusException, a throwable exception class containing a CStatusMessage.
2015-11-19 20:51:24 +00:00
Mathew Sutcliffe
6b40cde862
refs #413 Make all value class methods non-virtual.
...
toCVariant() and convertFromCVariant() are now deprecated,
use CVariant::from() and CVariant::to() instead.
2015-05-12 20:37:47 +01:00
Mathew Sutcliffe
b64ae55a86
refs #413 Access control of convertToQString changed from protected to public.
2015-05-12 20:37:43 +01:00
Roland Winklmeier
a089d3641d
refs #403 add BlackMisc shared library build
2015-05-05 21:34:19 +02:00
Mathew Sutcliffe
9977d97a67
refs #356 Renamed CValueObjectStdTuple to CValueObject.
2015-03-27 23:03:25 +00:00
Klaus Basan
269c65b578
As of workshop RW/KB, improved / fixed text messages
...
Also refs #351
* messages can be formatted with style sheet
* fixed: removed command from message
* added originator to command line
* msg parsing now in core
* using ITimestampBased for text messages and status messages
* allow to resize rows to content (view base)
* model / views for text messages
* removed old qt stylesheets
2015-03-20 17:10:58 +01:00
Mathew Sutcliffe
bf52390e01
refs #350 CStatusMessage methods for adding extra log categories.
2014-12-13 01:42:32 +00:00
Mathew Sutcliffe
48f04a4750
refs #247 Using CVariant in property index system.
2014-12-13 01:41:58 +00:00
Mathew Sutcliffe
16e285cecd
refs #247 Style.
2014-12-13 01:38:53 +00:00
Klaus Basan
09ecb419dd
Added isFromClass, see
...
https://dev.vatsim-germany.org/boards/22/topics/2207?r=2230#message-2230
2014-11-30 00:57:26 +01:00