Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dCache
cta
Commits
de71ebfb
Commit
de71ebfb
authored
20 years ago
by
Sebastien Ponce
Browse files
Options
Downloads
Patches
Plain Diff
Added some missing throw statements
parent
6e184c40
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
castor/Services.cpp
+10
-11
10 additions, 11 deletions
castor/Services.cpp
with
10 additions
and
11 deletions
castor/Services.cpp
+
10
−
11
View file @
de71ebfb
...
...
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* @(#)$RCSfile: Services.cpp,v $ $Revision: 1.
3
$ $Release$ $Date: 2004/05/2
5 16:26:54
$ $Author: sponcec3 $
* @(#)$RCSfile: Services.cpp,v $ $Revision: 1.
4
$ $Release$ $Date: 2004/05/2
7 07:28:30
$ $Author: sponcec3 $
*
*
*
...
...
@@ -58,7 +58,7 @@ castor::Services::~Services() {
// service
//-----------------------------------------------------------------------------
castor
::
IService
*
castor
::
Services
::
service
(
const
std
::
string
name
,
const
unsigned
int
id
)
{
const
unsigned
int
id
)
throw
()
{
std
::
map
<
const
std
::
string
,
IService
*>::
const_iterator
it
=
m_services
.
find
(
name
);
if
(
it
==
m_services
.
end
())
{
...
...
@@ -88,7 +88,7 @@ castor::IService* castor::Services::service(const std::string name,
// cnvService
//-----------------------------------------------------------------------------
castor
::
ICnvSvc
*
castor
::
Services
::
cnvService
(
const
std
::
string
name
,
const
unsigned
int
id
)
{
const
unsigned
int
id
)
throw
()
{
IService
*
svc
=
service
(
name
,
id
);
if
(
0
==
svc
)
{
return
0
;
...
...
@@ -101,6 +101,13 @@ castor::ICnvSvc* castor::Services::cnvService(const std::string name,
return
cnvSvc
;
}
// -----------------------------------------------------------------------
// removeService
// -----------------------------------------------------------------------
void
castor
::
Services
::
removeService
(
const
std
::
string
name
)
throw
()
{
m_services
.
erase
(
name
);
}
// -----------------------------------------------------------------------
// createRep
// -----------------------------------------------------------------------
...
...
@@ -187,11 +194,3 @@ void castor::Services::updateObj(castor::IAddress* address,
ObjectCatalog
newlyCreated
;
cnvSvc
->
updateObj
(
object
,
newlyCreated
);
}
// -----------------------------------------------------------------------
// removeService
// -----------------------------------------------------------------------
void
castor
::
Services
::
removeService
(
const
std
::
string
name
)
{
m_services
.
erase
(
name
);
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment