Jpp 21.0.0-rc.3
the software that should make you happy
Loading...
Searching...
No Matches
JObjectWriter.hh
Go to the documentation of this file.
1#ifndef __JLANG__JOBJECTWRITER__
2#define __JLANG__JOBJECTWRITER__
3
4#include <memory>
5
8
9
10/**
11 * \author mdejong
12 */
13
14namespace JLANG {}
15namespace JPP { using namespace JLANG; }
16
17namespace JLANG {
18
19
20 /**
21 * Auxiliary class for object writing to a named device.
22 *
23 * This class implements the JAbstractObjectWriter interface.
24 */
25 template<class T>
27 public virtual JObjectOutput<T>,
28 public JAbstractObjectWriter<T>,
29 public std::shared_ptr< JObjectOutput<T> >
30 {
31
32 typedef std::shared_ptr< JObjectOutput<T> > helper_type;
33
34 /**
35 * Default constructor.
36 */
39
40
41 /**
42 * Get helper.
43 *
44 * \return helper
45 */
46 virtual JObjectOutput<T>* getHelper() const override
47 {
48 return this->get();
49 }
50 };
51
52
53 /**
54 * Auxiliary class for object writing with named access.
55 *
56 * This class implements the JAbstractAccessibleObjectWriter interface.
57 */
58 template<class T>
60 public virtual JAccessibleObjectOutput<T>,
62 public std::shared_ptr< JAccessibleObjectOutput<T> >
63 {
64
65 typedef std::shared_ptr< JAccessibleObjectOutput<T> > helper_type;
66
67 /**
68 * Default constructor.
69 */
72
73
74 /**
75 * Get helper.
76 *
77 * \return helper
78 */
79 virtual JAccessibleObjectOutput<T>* getHelper() const override
80 {
81 return this->get();
82 }
83 };
84}
85
86#endif
Interface for object output with named access.
Template interface of object output for single data type.
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.
std::shared_ptr< JAccessibleObjectOutput< T > > helper_type
JAccessibleObjectWriter()
Default constructor.
virtual JAccessibleObjectOutput< T > * getHelper() const override
Get helper.
Auxiliary class for object writing to a named device.
std::shared_ptr< JObjectOutput< T > > helper_type
JObjectWriter()
Default constructor.
virtual JObjectOutput< T > * getHelper() const override
Get helper.