Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
42a776d
base data structures fot hook implementation.
NeaguGeorgiana23 Jul 7, 2026
e968609
fix linter
NeaguGeorgiana23 Jul 7, 2026
334ec2a
fix linter
NeaguGeorgiana23 Jul 7, 2026
f110e5c
Merge branch 'main' into define-hook-data-structures
NeaguGeorgiana23 Jul 7, 2026
5cc878b
Update BUILD file.
NeaguGeorgiana23 Jul 10, 2026
bd66430
Correct include guards.
NeaguGeorgiana23 Jul 10, 2026
5332610
feat: Add HookData class.
NeaguGeorgiana23 Jul 10, 2026
c8fc92d
fix linter
NeaguGeorgiana23 Jul 10, 2026
3f5f4de
fix linter
NeaguGeorgiana23 Jul 10, 2026
b0f3a15
fix linter
NeaguGeorgiana23 Jul 10, 2026
e9e8852
fix linter
NeaguGeorgiana23 Jul 10, 2026
e333df0
add HookContext structure.
NeaguGeorgiana23 Jul 13, 2026
c59de28
fix linter
NeaguGeorgiana23 Jul 13, 2026
45ca64a
fix linter
NeaguGeorgiana23 Jul 13, 2026
3b93d77
add Hooks class.
NeaguGeorgiana23 Jul 14, 2026
a4aa1c2
fix linter.
NeaguGeorgiana23 Jul 14, 2026
d7cd54a
fix linter.
NeaguGeorgiana23 Jul 14, 2026
d6ef2c6
fix linter.
NeaguGeorgiana23 Jul 14, 2026
a2f7fee
fix linter.
NeaguGeorgiana23 Jul 14, 2026
a91afca
appli agent suggestions.
NeaguGeorgiana23 Jul 14, 2026
c0482f7
Merge branch 'main' into hooks
NeaguGeorgiana23 Jul 14, 2026
a0ca155
Merge branch 'main' into hooks
NeaguGeorgiana23 Jul 14, 2026
06bd51c
Add EvaluationOpton struct.
NeaguGeorgiana23 Jul 15, 2026
b362223
fix linter.
NeaguGeorgiana23 Jul 15, 2026
6942c4e
update Provider class to allow getting hooks.
NeaguGeorgiana23 Jul 15, 2026
49bdc17
update all classes that inharit from FeatureProvider.
NeaguGeorgiana23 Jul 15, 2026
dab62a0
update BUILD files and imports.
NeaguGeorgiana23 Jul 15, 2026
ea6a463
update GlobalAPI with hook methods.
NeaguGeorgiana23 Jul 15, 2026
665914a
fix linter.
NeaguGeorgiana23 Jul 16, 2026
0bd0f58
fix linter.
NeaguGeorgiana23 Jul 16, 2026
153fc57
Merge branch 'main' of https://github.com/open-feature/cpp-sdk into u…
NeaguGeorgiana23 Aug 10, 2026
543edd0
Fix linter.
NeaguGeorgiana23 Aug 10, 2026
3e28c56
Update Clint API to support Hooks
NeaguGeorgiana23 Aug 10, 2026
0b6c84b
Overload functions to support EvaluationOptions.
NeaguGeorgiana23 Aug 10, 2026
bdbc5ca
fix linter.
NeaguGeorgiana23 Aug 10, 2026
408322e
fix tests
NeaguGeorgiana23 Aug 10, 2026
c6f2141
Add detailed flag evaluation.
NeaguGeorgiana23 Aug 11, 2026
3a5be12
Merge branch 'main' into detailed_evaluation
NeaguGeorgiana23 Aug 11, 2026
195126d
fix linter
NeaguGeorgiana23 Aug 11, 2026
0d90129
fix linter
NeaguGeorgiana23 Aug 11, 2026
2045c09
Merge branch 'main' of https://github.com/open-feature/cpp-sdk into d…
NeaguGeorgiana23 Aug 11, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion openfeature/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ cc_library(
deps = [
":evaluation_context",
":features",
":general_hook",
":metadata",
":provider_status",
],
Expand All @@ -63,7 +64,9 @@ cc_library(
":client",
":evaluation_context",
":features",
":flag_evaluation_details",
":flag_metadata",
":general_hook",
":global_context_manager",
":metadata",
":provider",
Expand Down Expand Up @@ -118,7 +121,9 @@ cc_library(
include_prefix = "openfeature",
deps = [
":evaluation_context",
":value"
":evaluation_options",
":flag_evaluation_details",
":value",
],
)

Expand Down
15 changes: 13 additions & 2 deletions openfeature/client.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
#ifndef CPP_SDK_INCLUDE_OPENFEATURE_CLIENT_H_
#define CPP_SDK_INCLUDE_OPENFEATURE_CLIENT_H_

#include <memory>
#include <vector>

#include "openfeature/evaluation_context.h"
#include "openfeature/features.h"
#include "openfeature/general_hook.h"
#include "openfeature/metadata.h"
#include "openfeature/provider_status.h"

Expand All @@ -11,7 +15,7 @@ namespace openfeature {
// OpenFeature client implementation.
class Client : public Features {
public:
virtual ~Client() = default;
~Client() override = default;
virtual Metadata GetMetadata() = 0;

// Return an optional client-level evaluation context.
Expand All @@ -23,7 +27,14 @@ class Client : public Features {
// Returns the current status of the associated provider.
virtual ProviderStatus GetProviderStatus() = 0;

// TODO: Add methods to add and get Hooks
// Adds one or more hooks to the client-level hook repository.
virtual void AddHooks(std::vector<std::shared_ptr<GeneralHook>> hooks) = 0;

// Adds a single hook to the client-level hook repository.
virtual void AddHook(std::shared_ptr<GeneralHook> hook) = 0;

// Retrieves all configured client-level hooks.
virtual std::vector<std::shared_ptr<GeneralHook>> GetHooks() const = 0;
};

} // namespace openfeature
Expand Down
Loading