Jpp  master_rocky-37-gf0c5bc59d
the software that should make you happy
JObjectWriter.hh
Go to the documentation of this file.
1 #ifndef __JLANG__JOBJECTWRITER__
2 #define __JLANG__JOBJECTWRITER__
3 
4 #include "JLang/JObjectOutput.hh"
7 
8 
9 /**
10  * \author mdejong
11  */
12 
13 namespace JLANG {}
14 namespace JPP { using namespace JLANG; }
15 
16 namespace JLANG {
17 
18 
19  /**
20  * Auxiliary class for object writing to a named device.
21  *
22  * This class implements the JAbstractObjectWriter interface.
23  */
24  template<class T>
25  struct JObjectWriter :
26  public virtual JObjectOutput<T>,
27  public JAbstractObjectWriter<T>,
28  public JSharedPointer< JObjectOutput<T> >
29  {
30 
32 
33  /**
34  * Default constructor.
35  */
37  {}
38 
39 
40  /**
41  * Get helper.
42  *
43  * \return helper
44  */
45  virtual JObjectOutput<T>* getHelper() const override
46  {
47  return this->get();
48  }
49  };
50 
51 
52  /**
53  * Auxiliary class for object writing with named access.
54  *
55  * This class implements the JAbstractAccessibleObjectWriter interface.
56  */
57  template<class T>
59  public virtual JAccessibleObjectOutput<T>,
61  public JSharedPointer< JAccessibleObjectOutput<T> >
62  {
63 
65 
66  /**
67  * Default constructor.
68  */
70  {}
71 
72 
73  /**
74  * Get helper.
75  *
76  * \return helper
77  */
78  virtual JAccessibleObjectOutput<T>* getHelper() const override
79  {
80  return this->get();
81  }
82  };
83 }
84 
85 #endif
Interface for object output with named access.
Template interface of object output for single data type.
virtual JClass_t * get() const override
Get pointer.
Definition: JPointer.hh:64
The template JSharedPointer class can be used to share a pointer to an object.
Auxiliary classes and methods for language specific functionality.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Abstract interface for object writing with named access.
Abstract interface for object writing.
Auxiliary class for object writing with named access.
JAccessibleObjectWriter()
Default constructor.
virtual JAccessibleObjectOutput< T > * getHelper() const override
Get helper.
JSharedPointer< JAccessibleObjectOutput< T > > helper_type
Auxiliary class for object writing to a named device.
JObjectWriter()
Default constructor.
JSharedPointer< JObjectOutput< T > > helper_type
virtual JObjectOutput< T > * getHelper() const override
Get helper.