activemq-cpp-3.9.5
Provider.h
Go to the documentation of this file.
1/*
2 * Licensed to the Apache Software Foundation (ASF) under one or more
3 * contributor license agreements. See the NOTICE file distributed with
4 * this work for additional information regarding copyright ownership.
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18#ifndef _DECAF_SECURITY_PROVIDER_H_
19#define _DECAF_SECURITY_PROVIDER_H_
20
21#include <decaf/util/Config.h>
22#include <decaf/util/Set.h>
23
24#include <string>
25
27
28namespace decaf {
29namespace security {
30
31 class ProviderImpl;
32
46 class DECAF_API Provider {
47 private:
48
49 std::string name;
50 double version;
51 std::string info;
52
53 ProviderImpl* impl;
54
55 private:
56
57 Provider(const Provider&);
58 Provider& operator= (const Provider&);
59
60 protected:
61
62 Provider(const std::string& name, double version, const std::string& info);
63
64 public:
65
66 virtual ~Provider();
67
68 public:
69
70 std::string getName() const {
71 return name;
72 }
73
74 double getVersion() const {
75 return version;
76 }
77
78 std::string getInfo() const {
79 return info;
80 }
81
83
84 protected:
85
86 virtual void initialize() {}
87
89
90 };
91
92}}
93
94#endif /* _DECAF_SECURITY_PROVIDER_H_ */
virtual void initialize()
Definition Provider.h:86
std::string getName() const
Definition Provider.h:70
std::string getInfo() const
Definition Provider.h:78
const decaf::util::Set< ProviderService * > & getServices() const
Provider(const std::string &name, double version, const std::string &info)
void addService(ProviderService *service)
double getVersion() const
Definition Provider.h:74
Definition ProviderService.h:31
A collection that contains no duplicate elements.
Definition Set.h:45
#define DECAF_API
Definition Config.h:29
Definition Engine.h:26
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition AprPool.h:25