FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cppgraphqlgen/samples/learn/QueryData.h at main · wravery/cppgraphqlgen · GitHub
wravery
cppgraphqlgen
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
cppgraphqlgen
/
samples
/
learn
/
QueryData.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
35 lines (25 loc) · 986 Bytes
Breadcrumbs
cppgraphqlgen
/
samples
/
learn
/
QueryData.h
Copy path
File metadata and controls
35 lines (25 loc) · 986 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//
Copyright (c) Microsoft Corporation. All rights reserved.
//
Licensed under the MIT License.
#
pragma
once
#
ifndef
QUERYDATA_H
#
define
QUERYDATA_H
#
include
"
QueryObject.h
"
#
include
"
DroidData.h
"
#
include
"
HumanData.h
"
namespace
graphql
::learn {
class
Query
{
public:
explicit
Query
(std::map<Episode, SharedHero>&& heroes,
std::map<response::IdType, std::shared_ptr<Human>>&& humans,
std::map<response::IdType, std::shared_ptr<Droid>>&& droids)
noexcept
;
std::shared_ptr<object::Character>
getHero
(std::optional<Episode> episodeArg)
const
noexcept
;
std::shared_ptr<object::Human>
getHuman
(
const
response::IdType& idArg)
const
noexcept
;
std::shared_ptr<object::Droid>
getDroid
(
const
response::IdType& idArg)
const
noexcept
;
private:
const
std::map<Episode, SharedHero> heroes_;
const
std::map<response::IdType, std::shared_ptr<Human>> humans_;
const
std::map<response::IdType, std::shared_ptr<Droid>> droids_;
};
}
//
namespace graphql::learn
#
endif
//
QUERYDATA_H
Back
|
FazBrowse Home
|
New Git URL