iFun Engine API  1.0.0-b6053
Great Technology for Great Games
runtime_configuration.h
Go to the documentation of this file.
1 // Copyright (C) 2013-2020 iFunFactory Inc. All Rights Reserved.
2 //
3 // This work is confidential and proprietary to iFunFactory Inc. and
4 // must not be used, disclosed, copied, or distributed without the prior
5 // consent of iFunFactory Inc.
6 
9 #ifndef INCLUDE_FUNAPI_MANAGEMENT_RUNTIME_CONFIGURATION_H_
10 #define INCLUDE_FUNAPI_MANAGEMENT_RUNTIME_CONFIGURATION_H_
11 
12 #include <boost/function.hpp>
13 
14 #include <funapi/types.h>
15 
16 
17 namespace fun {
18 
19 class FUNAPI_DLL_VISIBILITY RuntimeConfiguration {
20  public:
21  typedef function<void(const string &/*name*/,
22  const string &/*new_value*/,
23  const string &/*old_value*/)> ConfigChangeHandler;
24 
25  static void RegisterConfigChangeHandler(const string &name,
26  const ConfigChangeHandler &handler);
27 };
28 
29 } // namespace fun
30 
31 #endif // INCLUDE_FUNAPI_MANAGEMENT_RUNTIME_CONFIGURATION_H_
Definition: runtime_configuration.h:19
Definition: json.h:18