ALBA
albaAttributeTraceability.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: ALBA (Agile Library for Biomedical Applications)
4 Module: albaAttributeTraceability
5 Authors: Roberto Mucci
6
7 Copyright (c) BIC
8 All rights reserved. See Copyright.txt or
9
10
11 This software is distributed WITHOUT ANY WARRANTY; without even
12 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
13 PURPOSE. See the above copyright notice for more information.
14
15=========================================================================*/
16#ifndef __albaAttributeTraceability_h
17#define __albaAttributeTraceability_h
18//----------------------------------------------------------------------------
19// includes :
20//----------------------------------------------------------------------------
21#include "albaAttribute.h"
22#include <vector>
23
25{
34};
35
36#ifdef ALBA_EXPORTS
37#include "albaDllMacros.h"
39#endif
40
41//----------------------------------------------------------------------------
42// albaAttributeTraceability:
43//----------------------------------------------------------------------------
45class ALBA_EXPORT albaAttributeTraceability : public albaAttribute
46{
47public:
50
52
54 void AddTraceabilityEvent(albaString m_TrialEvent, albaString operationName, albaString parmaters, albaString date, albaString appStamp,albaString buildNum, albaString operatorID, albaString isNatural);
55
58
60 virtual void DeepCopy(const albaAttribute *a);
61
64
66 bool Equals(const albaAttribute *a) const;
67
70
71 std::vector<albaTraceability> m_TraceabilityVector;
72
73protected:
74
75 virtual int InternalStore(albaStorageElement *parent);
77};
78
79#endif
80
#define EXPORT_STL_VECTOR(declspec_, T_)
Definition: albaDllMacros.h:84
Set trials information about operations which created or modified VME.
virtual int InternalStore(albaStorageElement *parent)
This is called by Store() and must be reimplemented by subclasses.
bool Equals(const albaAttribute *a) const
return true if this attribute equals the given one
virtual ~albaAttributeTraceability()
virtual void DeepCopy(const albaAttribute *a)
copy the content of the given attribute.
void AddTraceabilityEvent(albaString m_TrialEvent, albaString operationName, albaString parmaters, albaString date, albaString appStamp, albaString buildNum, albaString operatorID, albaString isNatural)
add a create event
albaAttributeTraceability * MakeCopy()
create a copy of this attribute
void RemoveTraceabilityEvent()
remove a traceability event
std::vector< albaTraceability > m_TraceabilityVector
albaTypeMacro(albaAttributeTraceability, albaAttribute)
albaString GetLastTrialEvent()
return trial type form vetor of traceability event
virtual int InternalRestore(albaStorageElement *node)
This is called by Restore() and must be reimplemented by subclasses The element from which the object...
An abstract class for objects representing an attribute for albaVMEs.
Definition: albaAttribute.h:34
Abstract class representing the interface for the unit of information stored in the storage.
albaString - performs common string operations on c-strings.
Definition: albaString.h:43