ALBA
albaEventIO.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: ALBA (Agile Library for Biomedical Applications)
4 Module: albaEventIO
5 Authors: Marco Petrone
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 __albaEventIO_h
17#define __albaEventIO_h
18//----------------------------------------------------------------------------
19// includes :
20//----------------------------------------------------------------------------
21#include "albaEventBase.h"
22//------------------------------------------------------------------------------
23// Forward declarations
24//------------------------------------------------------------------------------
25class albaStorage;
26class albaVME;
27class albaRoot;
28//------------------------------------------------------------------------------
29// albaEventIO
30//------------------------------------------------------------------------------
37class ALBA_EXPORT albaEventIO: public albaEventBase
38{
39public:
40 albaEventIO(void *sender=NULL,albaID id=ID_NO_EVENT,albaID item_id=-1,void *data=NULL, albaID channel=MCH_UP);
41 virtual ~albaEventIO();
42
44
46 virtual void DeepCopy(const albaEventIO *c);
47
49 void SetItemId(albaID id);
50
53
55 void SetStorage(albaStorage *storage);
57
58 void SetRoot(albaVME *root);
59
62
63protected:
67};
68
69#endif /* __albaEventIO_h */
MCH_UP
channel used to send events up in the tree
Definition: albaDecl.h:387
long albaID
type for IDs inside ALBA
Definition: albaDefines.h:58
#define ID_NO_EVENT
Definition: albaDefines.h:71
Implementation of the message object for the Subject/Observer design pattern.
Definition: albaEventBase.h:49
Implementation of event used to exchange info about tree I/O.
Definition: albaEventIO.h:38
void SetItemId(albaID id)
set item Id stored into this event
void SetStorage(albaStorage *storage)
set the storage reference
albaVME * GetRoot()
return the pointer to the tree root node
void SetRoot(albaVME *root)
albaID m_ItemId
Definition: albaEventIO.h:64
albaEventIO(void *sender=NULL, albaID id=ID_NO_EVENT, albaID item_id=-1, void *data=NULL, albaID channel=MCH_UP)
albaStorage * GetStorage()
albaStorage * m_Storage
Definition: albaEventIO.h:65
virtual void DeepCopy(const albaEventIO *c)
copy constructor, this makes a copy of the event
albaTypeMacro(albaEventIO, albaEventBase)
albaID GetItemId()
return item Id of this event
virtual ~albaEventIO()
albaVME * m_Root
Definition: albaEventIO.h:66
Abstract class for an abject mastering the storing/restoring of objects This is an abstract class pro...
Definition: albaStorage.h:48
albaVME -
Definition: albaVME.h:150