Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Schrader
Kea
Commits
7fdcecdb
Commit
7fdcecdb
authored
Dec 01, 2016
by
Marcin Siodelski
Browse files
[5074] Files in libkea-process moved to isc::process namespace.
parent
070672ba
Changes
28
Hide whitespace changes
Inline
Side-by-side
src/bin/d2/d2_cfg_mgr.cc
View file @
7fdcecdb
// Copyright (C) 2014-201
5
Internet Systems Consortium, Inc. ("ISC")
// Copyright (C) 2014-201
6
Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
...
...
@@ -12,6 +12,8 @@
#include
<boost/foreach.hpp>
using
namespace
isc
::
process
;
namespace
isc
{
namespace
d2
{
...
...
src/bin/d2/d2_cfg_mgr.h
View file @
7fdcecdb
...
...
@@ -30,7 +30,7 @@ typedef boost::shared_ptr<D2CfgContext> D2CfgContextPtr;
/// and any other DHCP-DDNS specific information that needs to be accessible
/// during configuration parsing as well as to the application as a whole.
/// It is derived from the context base class, DCfgContextBase.
class
D2CfgContext
:
public
DCfgContextBase
{
class
D2CfgContext
:
public
process
::
DCfgContextBase
{
public:
/// @brief Constructor
D2CfgContext
();
...
...
@@ -41,8 +41,8 @@ public:
/// @brief Creates a clone of this context object.
///
/// @return returns a pointer to the new clone.
virtual
DCfgContextBasePtr
clone
()
{
return
(
DCfgContextBasePtr
(
new
D2CfgContext
(
*
this
)));
virtual
process
::
DCfgContextBasePtr
clone
()
{
return
(
process
::
DCfgContextBasePtr
(
new
D2CfgContext
(
*
this
)));
}
/// @brief Fetches a reference to the D2Params
...
...
@@ -103,7 +103,7 @@ typedef boost::shared_ptr<DdnsDomainListMgr> DdnsDomainListMgrPtr;
/// configuration. This includes services for parsing sets of configuration
/// values, storing the parsed information in its converted form,
/// and retrieving the information on demand.
class
D2CfgMgr
:
public
DCfgMgrBase
{
class
D2CfgMgr
:
public
process
::
DCfgMgrBase
{
public:
/// @brief Reverse zone suffix added to IPv4 addresses for reverse lookups
/// @todo This should be configurable.
...
...
@@ -294,7 +294,7 @@ protected:
/// error.
///
/// @return Returns a DCfgContextBasePtr to the new context instance.
virtual
DCfgContextBasePtr
createNewContext
();
virtual
process
::
DCfgContextBasePtr
createNewContext
();
};
/// @brief Defines a shared pointer to D2CfgMgr.
...
...
src/bin/d2/d2_config.cc
View file @
7fdcecdb
// Copyright (C) 2013-201
5
Internet Systems Consortium, Inc. ("ISC")
// Copyright (C) 2013-201
6
Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
...
...
@@ -20,6 +20,8 @@
#include
<sstream>
#include
<string>
using
namespace
isc
::
process
;
namespace
isc
{
namespace
d2
{
...
...
src/bin/d2/d2_config.h
View file @
7fdcecdb
...
...
@@ -701,7 +701,7 @@ typedef boost::shared_ptr<DdnsDomainListMgr> DdnsDomainListMgrPtr;
///
/// This class implements a concrete version of the base class by supplying a
/// "clone" method.
class
DScalarContext
:
public
DCfgContextBase
{
class
DScalarContext
:
public
process
::
DCfgContextBase
{
public:
/// @brief Constructor
...
...
@@ -715,8 +715,8 @@ public:
/// @brief Creates a clone of a DStubContext.
///
/// @return returns a pointer to the new clone.
virtual
DCfgContextBasePtr
clone
()
{
return
(
DCfgContextBasePtr
(
new
DScalarContext
(
*
this
)));
virtual
process
::
DCfgContextBasePtr
clone
()
{
return
(
process
::
DCfgContextBasePtr
(
new
DScalarContext
(
*
this
)));
}
protected:
...
...
src/bin/d2/d2_controller.cc
View file @
7fdcecdb
...
...
@@ -12,6 +12,8 @@
#include
<stdlib.h>
using
namespace
isc
::
process
;
namespace
isc
{
namespace
d2
{
...
...
src/bin/d2/d2_controller.h
View file @
7fdcecdb
...
...
@@ -22,14 +22,14 @@ namespace d2 {
/// DControllerBase a templated class but the labor savings versus the
/// potential number of virtual methods which may be overridden didn't seem
/// worth the clutter at this point.
class
D2Controller
:
public
DControllerBase
{
class
D2Controller
:
public
process
::
DControllerBase
{
public:
/// @brief Static singleton instance method. This method returns the
/// base class singleton instance member. It instantiates the singleton
/// and sets the base class instance member upon first invocation.
///
/// @return returns the pointer reference to the singleton instance.
static
DControllerBasePtr
&
instance
();
static
process
::
DControllerBasePtr
&
instance
();
/// @brief Destructor.
virtual
~
D2Controller
();
...
...
@@ -51,7 +51,7 @@ private:
/// Note the caller is responsible for destructing the process. This
/// is handled by the base class, which wraps this pointer with a smart
/// pointer.
virtual
DProcessBase
*
createProcess
();
virtual
process
::
DProcessBase
*
createProcess
();
/// @brief Constructor is declared private to maintain the integrity of
/// the singleton instance.
...
...
src/bin/d2/d2_process.cc
View file @
7fdcecdb
...
...
@@ -11,6 +11,8 @@
#include
<d2/d2_cfg_mgr.h>
#include
<d2/d2_process.h>
using
namespace
isc
::
process
;
namespace
isc
{
namespace
d2
{
...
...
src/bin/d2/d2_process.h
View file @
7fdcecdb
...
...
@@ -21,7 +21,7 @@ namespace d2 {
/// to receive DNS mapping change requests and carry them out.
/// It implements the DProcessBase interface, which structures it such that it
/// is a managed "application", controlled by a management layer.
class
D2Process
:
public
DProcessBase
{
class
D2Process
:
public
process
::
DProcessBase
{
public:
/// @brief Defines the shutdown types supported by D2Process
...
...
src/bin/d2/main.cc
View file @
7fdcecdb
...
...
@@ -14,6 +14,7 @@
#include
<iostream>
using
namespace
isc
::
d2
;
using
namespace
isc
::
process
;
using
namespace
std
;
/// This file contains entry point (main() function) for standard DHCP-DDNS
...
...
src/bin/d2/tests/d2_cfg_mgr_unittests.cc
View file @
7fdcecdb
...
...
@@ -21,6 +21,7 @@
using
namespace
std
;
using
namespace
isc
;
using
namespace
isc
::
d2
;
using
namespace
isc
::
process
;
namespace
{
...
...
src/bin/d2/tests/d2_controller_unittests.cc
View file @
7fdcecdb
...
...
@@ -18,6 +18,7 @@
#include
<sstream>
using
namespace
isc
::
process
;
using
namespace
boost
::
posix_time
;
namespace
isc
{
...
...
src/bin/d2/tests/d2_process_unittests.cc
View file @
7fdcecdb
...
...
@@ -22,6 +22,7 @@ using namespace std;
using
namespace
isc
;
using
namespace
isc
::
config
;
using
namespace
isc
::
d2
;
using
namespace
isc
::
process
;
using
namespace
boost
::
posix_time
;
namespace
{
...
...
src/bin/d2/tests/d2_update_mgr_unittests.cc
View file @
7fdcecdb
...
...
@@ -23,6 +23,7 @@ using namespace std;
using
namespace
isc
;
using
namespace
isc
::
dhcp_ddns
;
using
namespace
isc
::
d2
;
using
namespace
isc
::
process
;
namespace
{
...
...
src/lib/process/d_cfg_mgr.cc
View file @
7fdcecdb
...
...
@@ -30,7 +30,7 @@ using namespace isc::data;
using
namespace
isc
::
asiolink
;
namespace
isc
{
namespace
d2
{
namespace
process
{
// *********************** DCfgContextBase *************************
...
...
src/lib/process/d_cfg_mgr.h
View file @
7fdcecdb
// Copyright (C) 2013-201
5
Internet Systems Consortium, Inc. ("ISC")
// Copyright (C) 2013-201
6
Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
...
...
@@ -22,7 +22,7 @@
#endif
namespace
isc
{
namespace
d2
{
namespace
process
{
/// @brief Defines a map of ConstElementPtrs keyed by name
typedef
std
::
map
<
std
::
string
,
isc
::
data
::
ConstElementPtr
>
ElementMap
;
...
...
@@ -403,7 +403,7 @@ private:
typedef
boost
::
shared_ptr
<
DCfgMgrBase
>
DCfgMgrBasePtr
;
};
// end of isc::
d2
namespace
};
// end of isc::
process
namespace
};
// end of isc namespace
#endif // D_CFG_MGR_H
src/lib/process/d_controller.cc
View file @
7fdcecdb
...
...
@@ -30,7 +30,7 @@
#include
<unistd.h>
namespace
isc
{
namespace
d2
{
namespace
process
{
DControllerBasePtr
DControllerBase
::
controller_
;
...
...
@@ -498,6 +498,6 @@ DControllerBase::getVersion(bool extended) {
return
(
tmp
.
str
());
}
};
// namespace isc::
d2
};
// namespace isc::
process
};
// namespace isc
src/lib/process/d_controller.h
View file @
7fdcecdb
...
...
@@ -21,7 +21,7 @@
namespace
isc
{
namespace
d2
{
namespace
process
{
/// @brief Exception thrown when the command line is invalid.
class
InvalidUsage
:
public
isc
::
Exception
{
...
...
@@ -508,7 +508,7 @@ private:
friend
class
DControllerTest
;
};
};
// namespace isc::
d2
};
// namespace isc::
process
};
// namespace isc
#endif
src/lib/process/d_log.cc
View file @
7fdcecdb
...
...
@@ -9,11 +9,11 @@
#include
<process/d_log.h>
namespace
isc
{
namespace
d2
{
namespace
process
{
/// @brief Defines the logger used within libkea-process library.
isc
::
log
::
Logger
dctl_logger
(
"dctl"
);
}
// namespace
d2
}
// namespace
process
}
// namespace isc
src/lib/process/d_log.h
View file @
7fdcecdb
...
...
@@ -4,20 +4,20 @@
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#ifndef D
2
_LOG_H
#define D
2
_LOG_H
#ifndef D_LOG_H
#define D_LOG_H
#include
<log/logger_support.h>
#include
<log/macros.h>
#include
<process/process_messages.h>
namespace
isc
{
namespace
d2
{
namespace
process
{
/// Define the loggers used within libkea-process library.
extern
isc
::
log
::
Logger
dctl_logger
;
}
// namespace
d2
}
// namespace
process
}
// namespace isc
#endif // D
2
_LOG_H
#endif // D_LOG_H
src/lib/process/d_process.h
View file @
7fdcecdb
...
...
@@ -16,7 +16,7 @@
#include
<exceptions/exceptions.h>
namespace
isc
{
namespace
d2
{
namespace
process
{
/// @brief Exception thrown if the process encountered an operational error.
class
DProcessBaseError
:
public
isc
::
Exception
{
...
...
@@ -203,7 +203,7 @@ private:
/// @brief Defines a shared pointer to DProcessBase.
typedef
boost
::
shared_ptr
<
DProcessBase
>
DProcessBasePtr
;
};
// namespace isc::
d2
};
// namespace isc::
process
};
// namespace isc
#endif
Prev
1
2
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment