Caffa  1.1.0
C++ Application Framework for Embedded Systems with introspection
cafFieldDocumentationCapability.h
1 //##################################################################################################
2 //
3 // Caffa
4 // Copyright (C) 2022- Kontur AS
5 //
6 // GNU Lesser General Public License Usage
7 // This library is free software; you can redistribute it and/or modify
8 // it under the terms of the GNU Lesser General Public License as published by
9 // the Free Software Foundation; either version 2.1 of the License, or
10 // (at your option) any later version.
11 //
12 // This library is distributed in the hope that it will be useful, but WITHOUT ANY
13 // WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 // FITNESS FOR A PARTICULAR PURPOSE.
15 //
16 // See the GNU Lesser General Public License at <<http://www.gnu.org/licenses/lgpl-2.1.html>>
17 // for more details.
18 //
19 //##################################################################################################
20 #pragma once
21 
22 #include "cafFieldCapability.h"
23 
24 #include <string>
25 
26 namespace caffa
27 {
28 class FieldHandle;
29 
31 {
32 public:
33  FieldDocumentationCapability( const std::string& documentation );
34 
35  std::string documentation() const;
36 
37 protected:
38  const FieldHandle* owner() const override;
39  void setOwner( FieldHandle* field ) override;
40 
41 private:
42  std::string m_documentation;
43 
44  FieldHandle* m_owner;
45 };
46 
47 } // namespace caffa
Definition: cafFieldCapability.h:8
Definition: cafFieldDocumentationCapability.h:31
Base class for all fields, making it possible to handle them generically.
Definition: cafFieldHandle.h:23
Main Caffa namespace.
Definition: __init__.py:1