-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DXFC-407] Add a TimeSeriesSubscriptionSymbol and IndexedEventSubscri…
…ptionSymbol support (#14)
- Loading branch information
1 parent
999b1f6
commit bc02427
Showing
7 changed files
with
70 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
include/dxfeed_graal_cpp_api/api/FilteredSubscriptionSymbol.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// Copyright (c) 2023 Devexperts LLC. | ||
// SPDX-License-Identifier: MPL-2.0 | ||
|
||
#pragma once | ||
|
||
#include "../internal/Conf.hpp" | ||
|
||
namespace dxfcpp { | ||
|
||
/** | ||
* This marker interface marks subscription symbol classes (like TimeSeriesSubscriptionSymbol) | ||
* that attach "filters" to the actual symbols. Filtered subscription symbols implement their `operator ==` | ||
* and `std::hash<>` based on their symbol only, without considering their "filter" part (for example, a TimeSeriesSubscriptionSymbol has | ||
* a @ref TimeSeriesSubscriptionSymbol::getFromTime() "fromTime" filter on a time range of events). | ||
* | ||
* <p>DXFeedSubscription has the following behavior for filtered symbols. There can be only one | ||
* active filter per symbol. Adding new filtered symbol with the same symbol but different filter | ||
* removes the old one from subscription, adds the new one, and <em>notifies</em> | ||
* ObservableSubscriptionChangeListener <em>about this subscription change</em>. | ||
* The later is a special behaviour for filtered subscription symbols, because on other types of | ||
* symbols (like StringSymbol, for example) there is no notification when replacing one symbol with the other that | ||
* is "equal" to the first one. | ||
*/ | ||
struct FilteredSubscriptionSymbol { | ||
|
||
}; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
#include <cstdint> | ||
#include <memory> | ||
#include <utility> | ||
#include <string> | ||
|
||
namespace dxfcpp { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters