IText.hpp
1 #pragma once
2 
3 #include "DM/config.hpp"
4 #include "DM/ObjectBase.hpp"
5 #include "DM/Handle.hpp"
6 
7 DM_NAMESPACE_BEGIN
8 
9 /// \brief Simple text object
10 /**
11  For transporting text (=strings) from inside the DM to the outside, handling the life time problem
12 */
13 class DM_API IText : public ObjectBase
14 {
15 public:
16  static IText* New(const char* msg);
17 
18 protected:
19  virtual ~IText() {}
20 
21 public:
22  virtual const char* c_str() const = 0;
23  virtual IText &operator=(const char *) = 0;
24 };
25 
27 
28 DM_NAMESPACE_END
Simple text object.
Definition: IText.hpp:13
Smart pointer class using reference counting with support for DM objects (see ObjectBase)
Definition: Handle.hpp:75
Definition: M/c++_api/inc/DM/ObjectBase.hpp:8