VSM C++ SDK
Vehicle Specific Modules SDK
request_temp_completion_context.h
Go to the documentation of this file.
1 // Copyright (c) 2014, Smart Projects Holdings Ltd
2 // All rights reserved.
3 // See LICENSE file for license details.
4 
9 #ifndef TASK_TEMP_COMPLETION_CONTEXT_H_
10 #define TASK_TEMP_COMPLETION_CONTEXT_H_
11 
13 
14 namespace ugcs {
15 namespace vsm {
16 
20 public:
21 
23  Request_completion_context("Temporary completion context")
24  {
25  /* Always enable itself at creation. */
26  Enable();
27  }
28 
30  {
31  /* Always disable itself at destruction. */
32  Disable();
33  }
34 
36  virtual Type
37  Get_type() const override
38  {
40  }
41 
42 };
43 
44 } /* namespace vsm */
45 } /* namespace ugcs */
46 
47 #endif /* TASK_TEMP_COMPLETION_CONTEXT_H_ */
UGCS root namespace.
Definition: android-linux/ugcs/vsm/platform_sockets.h:27
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:31
Type
Container type.
Definition: request_container.h:441
virtual Type Get_type() const override
Get this container type.
Definition: request_temp_completion_context.h:37
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.