swift
rawfsdmessagelist.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (C) 2018 swift Project Community / Contributors
2 // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3 
5 
6 #ifndef SWIFT_MISC_NETWORK_RAWFSDMESSAGELIST_H
7 #define SWIFT_MISC_NETWORK_RAWFSDMESSAGELIST_H
8 
9 #include <initializer_list>
10 
11 #include <QMetaType>
12 
13 #include "misc/collection.h"
15 #include "misc/sequence.h"
16 #include "misc/swiftmiscexport.h"
18 
19 SWIFT_DECLARE_SEQUENCE_MIXINS(swift::misc::network, CRawFsdMessage, CRawFsdMessageList)
20 
21 namespace swift::misc::network
22 {
25  public CSequence<CRawFsdMessage>,
26  public mixin::MetaType<CRawFsdMessageList>,
27  public ITimestampObjectList<CRawFsdMessage, CRawFsdMessageList>
28  {
29  public:
32 
35 
37  CRawFsdMessageList(const CSequence &other);
38 
40  CRawFsdMessageList findByPacketType(const QString &type) const;
41 
43  CRawFsdMessageList findByContainsString(const QString &str) const;
44  };
45 } // namespace swift::misc::network
46 
49 
50 #endif // SWIFT_MISC_NETWORK_RAWFSDMESSAGELIST_H
Generic ordered container with value semantics.
Definition: collection.h:107
Generic sequential container with value semantics.
Definition: sequence.h:86
CSequence()=default
Default constructor.
List of objects with timestamp. Such objects should implement.
CRTP class template from which a derived class can inherit common methods dealing with the metatype o...
Definition: mixinmetatype.h:29
Value object encapsulating a list raw FSD messages.
#define SWIFT_MISC_DECLARE_USING_MIXIN_METATYPE(DERIVED)
When a derived class and a base class both inherit from mixin::MetaType, the derived class uses this ...
#define SWIFT_DECLARE_SEQUENCE_MIXINS(Namespace, T, List)
Explicit template declaration of mixins for a CSequence subclass to be placed near the top of the hea...
Definition: sequence.h:62
#define SWIFT_MISC_EXPORT
Export a class or function from the library.