HAN-FUN API  1.5.3
This project provides the common implementation of ULE Alliance's HAN-FUN application protocol.
application.h
Go to the documentation of this file.
1 // =============================================================================
15 // =============================================================================
16 
17 #ifndef HF_APP_H
18 #define HF_APP_H
19 
20 #include "hanfun.h"
21 
22 #include "hanfun/debug.h"
23 
24 // =============================================================================
25 // API
26 // =============================================================================
27 
28 namespace HF
29 {
41  namespace Application
42  {
48  void Initialize(HF::Transport::Layer &transport);
49 
58  bool Handle(std::string command);
59 
63  void Save();
64 
69  void Saved();
70 
74  void Restore();
75 
80  void Restored();
81 
82 #if HF_APP_EXT_REG
83 
92  bool Registration(bool mode);
93 
99  void Deregister(uint16_t address);
100 #endif
101 
102  } // namespace Application
103 
106 } // namespace HF
107 
108 #endif /* HF_APP_H */
bool Handle(std::string command)
Handle the command.
Definition: common.cpp:197
This is the top level include file for the HAN-FUN library.
This file contains the prototypes of the debug functionality in HAN-FUN.
void Saved()
Callback indicating that the application configuration has been saved.
Definition: main.cpp:95
This class defines the API for the transport layer.
void Restored()
Callback indicating that the application configuration has been restored.
Definition: main.cpp:107
void Restore()
Restore application configuration.
Definition: base_app.cpp:498
void Save()
Save application configuration.
Definition: base_app.cpp:473
void Initialize(HF::Transport::Layer &transport)
Initialize the application.
Definition: base_app.cpp:441
Top-level namespace for the HAN-FUN library.
Definition: attributes.h:22