Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
metadata_exporter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IA2
metadata_exporter
Commits
9294f98d
Commit
9294f98d
authored
Nov 22, 2013
by
Marco De Marco
Browse files
Options
Downloads
Patches
Plain Diff
Minor changes and typo in protocol manager class
parent
85f8b296
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/ProtocolManager.cpp
+7
-6
7 additions, 6 deletions
src/ProtocolManager.cpp
src/ProtocolManager.h
+5
-2
5 additions, 2 deletions
src/ProtocolManager.h
with
12 additions
and
8 deletions
src/ProtocolManager.cpp
+
7
−
6
View file @
9294f98d
...
@@ -18,7 +18,7 @@ ProtocolManager::ProtocolManager(Tango::DeviceImpl* deviceImpl_p,
...
@@ -18,7 +18,7 @@ ProtocolManager::ProtocolManager(Tango::DeviceImpl* deviceImpl_p,
}
}
//==============================================================================
//==============================================================================
// ProtocolManager::ProtocolManager()
// ProtocolManager::
~
ProtocolManager()
//==============================================================================
//==============================================================================
ProtocolManager
::~
ProtocolManager
()
ProtocolManager
::~
ProtocolManager
()
{
{
...
@@ -26,7 +26,7 @@ ProtocolManager::~ProtocolManager()
...
@@ -26,7 +26,7 @@ ProtocolManager::~ProtocolManager()
}
}
//==============================================================================
//==============================================================================
// ProtocolManager::
ProtocolManager
()
// ProtocolManager::
create
()
//==============================================================================
//==============================================================================
ProtocolManager
::
SP
ProtocolManager
::
create
(
Tango
::
DeviceImpl
*
deviceImpl_p
,
ProtocolManager
::
SP
ProtocolManager
::
create
(
Tango
::
DeviceImpl
*
deviceImpl_p
,
Configuration
::
SP
configuration_sp
,
DBManager
::
SP
dBManager_sp
)
Configuration
::
SP
configuration_sp
,
DBManager
::
SP
dBManager_sp
)
...
@@ -38,7 +38,7 @@ ProtocolManager::SP ProtocolManager::create(Tango::DeviceImpl* deviceImpl_p,
...
@@ -38,7 +38,7 @@ ProtocolManager::SP ProtocolManager::create(Tango::DeviceImpl* deviceImpl_p,
}
}
//==============================================================================
//==============================================================================
// ProtocolManager::
ProtocolManager
()
// ProtocolManager::
setRemoteEndpoint
()
//==============================================================================
//==============================================================================
void
ProtocolManager
::
setRemoteEndpoint
(
std
::
string
remoteEndpoint
)
void
ProtocolManager
::
setRemoteEndpoint
(
std
::
string
remoteEndpoint
)
{
{
...
@@ -243,19 +243,20 @@ ResponseSP ProtocolManager::prepareMetadata(RequestSP request_sp)
...
@@ -243,19 +243,20 @@ ResponseSP ProtocolManager::prepareMetadata(RequestSP request_sp)
if
(
m_isValidated
)
if
(
m_isValidated
)
{
{
const
Request
::
Metadata
&
metadataReq
=
request_sp
->
metadata
();
const
Request
::
Metadata
&
metadataReq
=
request_sp
->
metadata
();
int64_t
rawTimestamp
=
metadataReq
.
timestamp
();
int64_t
rawTimestamp
=
metadataReq
.
timestamp
();
std
::
tm
timestamp
=
*
localtime
(
&
rawTimestamp
);
std
::
tm
t
mT
imestamp
=
*
localtime
(
&
rawTimestamp
);
DEBUG_STREAM
<<
"ProtocolManager::prepareMetadata() Searching in "
DEBUG_STREAM
<<
"ProtocolManager::prepareMetadata() Searching in "
<<
m_validatedSchema
<<
"."
<<
m_validatedTable
<<
" timestamp "
<<
m_validatedSchema
<<
"."
<<
m_validatedTable
<<
" timestamp "
<<
asctime
(
&
timestamp
)
<<
" from "
<<
m_remoteEndpoint
<<
endl
;
<<
asctime
(
&
t
mT
imestamp
)
<<
" from "
<<
m_remoteEndpoint
<<
endl
;
try
try
{
{
if
(
!
m_rowSet_sp
)
if
(
!
m_rowSet_sp
)
{
{
m_rowSet_sp
=
m_dBManager_sp
->
retrieveNewTuples
(
m_rowSet_sp
=
m_dBManager_sp
->
retrieveNewTuples
(
m_validatedSchema
,
m_validatedTable
,
timestamp
);
m_validatedSchema
,
m_validatedTable
,
t
mT
imestamp
);
m_it
=
m_rowSet_sp
->
begin
();
m_it
=
m_rowSet_sp
->
begin
();
}
}
...
...
This diff is collapsed.
Click to expand it.
src/ProtocolManager.h
+
5
−
2
View file @
9294f98d
...
@@ -73,11 +73,14 @@ protected:
...
@@ -73,11 +73,14 @@ protected:
throw
(
std
::
runtime_error
);
throw
(
std
::
runtime_error
);
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
// [Protected]
V
alidation
related
method
s
// [Protected]
Columns v
alidation method
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
virtual
void
validateColumn
(
const
Request
::
Validation
::
Column
&
,
virtual
void
validateColumn
(
const
Request
::
Validation
::
Column
&
,
DBManager
::
InformationList
&
)
throw
(
std
::
runtime_error
);
DBManager
::
InformationList
&
)
throw
(
std
::
runtime_error
);
//------------------------------------------------------------------------------
// [Protected] Metadata serialization method
//------------------------------------------------------------------------------
virtual
void
fillMetadata
(
Response
::
Metadata
*
)
throw
(
std
::
runtime_error
);
virtual
void
fillMetadata
(
Response
::
Metadata
*
)
throw
(
std
::
runtime_error
);
virtual
void
fillRow
(
Response
::
Metadata
::
Row
*
)
throw
(
std
::
runtime_error
);
virtual
void
fillRow
(
Response
::
Metadata
::
Row
*
)
throw
(
std
::
runtime_error
);
...
@@ -106,7 +109,7 @@ protected:
...
@@ -106,7 +109,7 @@ protected:
//Retrieved data iterator
//Retrieved data iterator
soci
::
rowset
<
soci
::
row
>::
const_iterator
m_it
;
soci
::
rowset
<
soci
::
row
>::
const_iterator
m_it
;
//Retrieved data
//Retrieved data
shared pointer
boost
::
shared_ptr
<
soci
::
rowset
<
soci
::
row
>
>
m_rowSet_sp
;
boost
::
shared_ptr
<
soci
::
rowset
<
soci
::
row
>
>
m_rowSet_sp
;
//Address and port of remote endpoint
//Address and port of remote endpoint
...
...
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