acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
aaa_action_item_exchange.h
1#pragma once
2
3
4struct CLASS_DECL_ACME action_item_exchange
5{
6
7 ::i32 m_iIndex;
8 char_pointer m_pszName;
9 char_pointer m_pszId;
10 char_pointer m_pszLabel;
11 char_pointer m_pszAccelerator;
12 char_pointer m_pszDescription;
13
14 action_item_exchange(::i32 iIndex, const ::scoped_string & scopedstrName, const ::scoped_string & scopedstrId, const ::scoped_string & scopedstrLabel, const ::scoped_string & scopedstrAccelerator, const ::scoped_string & scopedstrDescription)
15 {
16
17 m_iIndex = iIndex;
18 m_pszName = strdup(scopedstrName);
19 m_pszId = strdup(scopedstrId);
20 m_pszLabel = strdup(scopedstrLabel);
21 m_pszAccelerator = strdup(scopedstrAccelerator);
22 m_pszDescription = strdup(scopedstrDescription);
23
24 }
25
26
27 action_item_exchange(action_item_exchange && e)
28 {
29
30 ::memory_copy(this, &e, sizeof(action_item_exchange));
31 ::memory_set(&e, 0, sizeof(action_item_exchange));
32
33 }
34
35
36 ~action_item_exchange()
37 {
38
39 ::acme::free(m_pszName);
40 ::acme::free(m_pszId);
41 ::acme::free(m_pszLabel);
42 ::acme::free(m_pszAccelerator);
43 ::acme::free(m_pszDescription);
44
45 }
46
47};
48
49
50