BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/GeneratorObject/include/DataModel/tools/AccessibleState.h
Go to the documentation of this file.
1#ifndef DATAMODEL_TOOLS_ACCESSIBLESTATE_H
2#define DATAMODEL_TOOLS_ACCESSIBLESTATE_H 1
3
4#ifndef DATAMODEL_TOOLS_ISTORAGESTATE_H
5# include "DataModel/tools/IStorageState.h"
6#endif
7
9
10// the storage is in the persistable state when p_data (the proxy) is defined
11// we define the transition from persistable to identified
12// and from persistable to accessible
13
15
16public:
17 static IStorageState* instance( void );
18
19 // check whether this is a valid state
20 static bool valid( const IStoragePolicy* context );
21 virtual bool isValid( const IStoragePolicy* context ) const;
22
23 // Input Storable* (as void*) for each method below:
24
25 virtual void toAccessible( IStoragePolicy* );
26 virtual void toIdentified( IStoragePolicy* context );
27 virtual void toPersistable( IStoragePolicy* context );
28
29protected:
30 AccessibleState( void ){};
31
32private:
33 static IStorageState* m_instance;
34};
35
36#endif
static IStorageState * instance(void)
virtual void toPersistable(IStoragePolicy *context)
virtual bool isValid(const IStoragePolicy *context) const
virtual void toIdentified(IStoragePolicy *context)
virtual void toAccessible(IStoragePolicy *)
static bool valid(const IStoragePolicy *context)