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
22e1a11b
Commit
22e1a11b
authored
10 years ago
by
Steven Murray
Browse files
Options
Downloads
Patches
Plain Diff
Added abstract class ConfigurationEntry
parent
9be31c3e
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
middletier/CMakeLists.txt
+1
-0
1 addition, 0 deletions
middletier/CMakeLists.txt
middletier/cta/ConfigurationEntry.cpp
+44
-0
44 additions, 0 deletions
middletier/cta/ConfigurationEntry.cpp
middletier/cta/ConfigurationEntry.hpp
+76
-0
76 additions, 0 deletions
middletier/cta/ConfigurationEntry.hpp
with
121 additions
and
0 deletions
middletier/CMakeLists.txt
+
1
−
0
View file @
22e1a11b
...
...
@@ -16,6 +16,7 @@ set (MIDDLE_TIER_LIB_SRC_FILES
cta/ArchiveRouteId.cpp
cta/ArchiveToDirRequest.cpp
cta/ArchiveToFileRequest.cpp
cta/ConfigurationEntry.cpp
cta/DirectoryEntry.cpp
cta/DirectoryIterator.cpp
cta/DiskException.cpp
...
...
This diff is collapsed.
Click to expand it.
middletier/cta/ConfigurationEntry.cpp
0 → 100644
+
44
−
0
View file @
22e1a11b
#include
"cta/ConfigurationEntry.hpp"
//------------------------------------------------------------------------------
// constructor
//------------------------------------------------------------------------------
cta
::
ConfigurationEntry
::
ConfigurationEntry
()
{
}
//------------------------------------------------------------------------------
// destructor
//------------------------------------------------------------------------------
cta
::
ConfigurationEntry
::~
ConfigurationEntry
()
throw
()
{
}
//------------------------------------------------------------------------------
// constructor
//------------------------------------------------------------------------------
cta
::
ConfigurationEntry
::
ConfigurationEntry
(
const
UserIdentity
&
creator
,
const
std
::
string
&
comment
)
:
m_creationTime
(
time
(
NULL
)),
m_creator
(
creator
),
m_comment
(
comment
)
{
}
//------------------------------------------------------------------------------
// getCreationTime
//------------------------------------------------------------------------------
time_t
cta
::
ConfigurationEntry
::
getCreationTime
()
const
throw
()
{
return
m_creationTime
;
}
//------------------------------------------------------------------------------
// getCreator
//------------------------------------------------------------------------------
const
cta
::
UserIdentity
&
cta
::
ConfigurationEntry
::
getCreator
()
const
throw
()
{
return
m_creator
;
}
//------------------------------------------------------------------------------
// getComment
//------------------------------------------------------------------------------
const
std
::
string
&
cta
::
ConfigurationEntry
::
getComment
()
const
throw
()
{
return
m_comment
;
}
This diff is collapsed.
Click to expand it.
middletier/cta/ConfigurationEntry.hpp
0 → 100644
+
76
−
0
View file @
22e1a11b
#pragma once
#include
"cta/UserIdentity.hpp"
#include
<string>
#include
<time.h>
namespace
cta
{
/**
* Abstract class representing a configuration entry.
*/
class
ConfigurationEntry
{
public:
/**
* Constructor.
*/
ConfigurationEntry
();
/**
* Destructor.
*/
virtual
~
ConfigurationEntry
()
throw
()
=
0
;
/**
* Constructor.
*
* @param creator The identity of the user that created the configuration
* entry.
* @param comment The comment made by the creator of the configuration
* request.
*/
ConfigurationEntry
(
const
UserIdentity
&
creator
,
const
std
::
string
&
comment
);
/**
* Returns the absolute time at which the configuration entry was created.
*
* @return The absolute time at which the configuration entry was created.
*/
time_t
getCreationTime
()
const
throw
();
/**
* Returns the identity of the user that created the configuration entry.
*
* @return The identity of the user that created the configuration entry.
*/
const
UserIdentity
&
getCreator
()
const
throw
();
/**
* Returns the comment made by the creator of the configuration request.
*
* @return The comment made by the creator of the configuration request.
*/
const
std
::
string
&
getComment
()
const
throw
();
private:
/**
* The absolute time at which the configuration entry was created.
*/
time_t
m_creationTime
;
/**
* The identity of the user that created the configuration entry.
*/
UserIdentity
m_creator
;
/**
* The comment made by the creator of the configuration request.
*/
std
::
string
m_comment
;
};
// class ConfigurationEntry
}
// namespace cta
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