Scanner C++ API
Main Page
Namespaces
Classes
Files
File List
scanner
engine
op_registry.h
1
/* Copyright 2016 Carnegie Mellon University
2
*
3
* Licensed under the Apache License, Version 2.0 (the "License");
4
* you may not use this file except in compliance with the License.
5
* You may obtain a copy of the License at
6
*
7
* http://www.apache.org/licenses/LICENSE-2.0
8
*
9
* Unless required by applicable law or agreed to in writing, software
10
* distributed under the License is distributed on an "AS IS" BASIS,
11
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
* See the License for the specific language governing permissions and
13
* limitations under the License.
14
*/
15
16
#pragma once
17
18
#include "scanner/api/op.h"
19
#include "scanner/engine/op_info.h"
20
21
#include "scanner/util/common.h"
22
23
#include <map>
24
25
namespace
scanner
{
26
namespace
internal {
27
28
class
OpRegistry
{
29
public
:
30
Result add_op(
const
std::string& name,
OpInfo
* info);
31
32
OpInfo
* get_op_info(
const
std::string& name)
const
;
33
34
bool
has_op(
const
std::string& name)
const
;
35
36
private
:
37
std::map<std::string, OpInfo*> ops_;
38
};
39
40
OpRegistry
* get_op_registry();
41
}
42
}
scanner::internal::OpRegistry
Definition:
op_registry.h:28
scanner::internal::OpInfo
Definition:
op_info.h:26
scanner
Definition:
database.cpp:36
Generated by
1.8.11