VSM C++ SDK
Vehicle Specific Modules SDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
request_temp_completion_context.h
Go to the documentation of this file.
1 // Copyright (c) 2018, Smart Projects Holdings Ltd
2 // All rights reserved.
3 // See LICENSE file for license details.
4 
9 #ifndef _UGCS_VSM_REQUEST_TEMP_COMPLETION_CONTEXT_H_
10 #define _UGCS_VSM_REQUEST_TEMP_COMPLETION_CONTEXT_H_
11 
13 
14 namespace ugcs {
15 namespace vsm {
16 
20 public:
22  Request_completion_context("Temporary completion context")
23  {
24  /* Always enable itself at creation. */
25  Enable();
26  }
27 
29  {
30  /* Always disable itself at destruction. */
31  Disable();
32  }
33 
35  virtual Type
36  Get_type() const override
37  {
39  }
40 };
41 
42 } /* namespace vsm */
43 } /* namespace ugcs */
44 
45 #endif /* _UGCS_VSM_REQUEST_TEMP_COMPLETION_CONTEXT_H_ */
void Disable()
Disable the container.
Request execution context.
Request execution context.
Definition: request_context.h:24
Generic container for queued requests.
Definition: request_container.h:30
Type
Container type.
Definition: request_container.h:443
virtual Type Get_type() const override
Get this container type.
Definition: request_temp_completion_context.h:36
Temporal request completion context.
Definition: request_temp_completion_context.h:18
#define DEFINE_COMMON_CLASS(__class_name,...)
Use this macro to define some common attributes for a class.
Definition: utils.h:25
void Enable()
Enable the container.