#include <Configuration.h>
Public Methods | |
| ACE_Configuration_Value_IntId (void) | |
| Default constructor. More... | |
| ACE_EXPLICIT | ACE_Configuration_Value_IntId (ACE_TCHAR *string) |
| String constructor, takes ownership of string. More... | |
| ACE_EXPLICIT | ACE_Configuration_Value_IntId (u_int integer) |
| Integer constructor. More... | |
| ACE_Configuration_Value_IntId (void *data, size_t length) | |
| Binary constructor, takes ownership of data. More... | |
| ACE_Configuration_Value_IntId (const ACE_Configuration_Value_IntId &rhs) | |
| Copy ctor. More... | |
| ~ACE_Configuration_Value_IntId (void) | |
| Destructor. More... | |
| ACE_Configuration_Value_IntId & | operator= (const ACE_Configuration_Value_IntId &rhs) |
| Assignment operator. More... | |
| void | free (ACE_Allocator *alloc) |
Public Attributes | |
| ACE_Configuration::VALUETYPE | type_ |
| union { | |
| void * ptr_ | |
| u_int int_ | |
| } | data_ |
| size_t | length_ |
This class is present as the internal portion of a section's value hash table It may store string, integer or binary data.
Definition at line 615 of file Configuration.h.
|
|
Default constructor.
Definition at line 1071 of file Configuration.cpp. References data_.
01072 : type_ (ACE_Configuration::INVALID), 01073 length_ (0) 01074 { 01075 this->data_.ptr_ = 0; 01076 } |
|
|
String constructor, takes ownership of string.
Definition at line 1078 of file Configuration.cpp. References ACE_TCHAR, and data_.
01079 : type_ (ACE_Configuration::STRING), 01080 length_ (0) 01081 { 01082 this->data_.ptr_ = string; 01083 } |
|
|
Integer constructor.
Definition at line 1085 of file Configuration.cpp. References data_.
01086 : type_ (ACE_Configuration::INTEGER), 01087 length_ (0) 01088 { 01089 this->data_.int_ = integer; 01090 } |
|
||||||||||||
|
Binary constructor, takes ownership of data.
Definition at line 1092 of file Configuration.cpp. References data_.
01093 : type_ (ACE_Configuration::BINARY), 01094 length_ (length) 01095 { 01096 this->data_.ptr_ = data; 01097 } |
|
|
Copy ctor.
Definition at line 1099 of file Configuration.cpp.
|
|
|
Destructor.
Definition at line 1106 of file Configuration.cpp.
01107 {
01108 }
|
|
|
Definition at line 1122 of file Configuration.cpp. References ACE_Configuration::BINARY, data_, ACE_Allocator::free, ACE_Configuration::STRING, and type_. Referenced by ACE_Configuration_Heap::remove_section, ACE_Configuration_Heap::remove_value, ACE_Configuration_Heap::set_binary_value, and ACE_Configuration_Heap::set_string_value.
01123 {
01124 if (this->type_ == ACE_Configuration::STRING
01125 || this->type_ == ACE_Configuration::BINARY)
01126 alloc->free (data_.ptr_);
01127 // Do nothing in other cases...
01128 }
|
|
|
Assignment operator.
Definition at line 1110 of file Configuration.cpp. References data_, length_, and type_.
|
|
|
Referenced by ACE_Configuration_Value_IntId, free, ACE_Configuration_Heap::get_binary_value, ACE_Configuration_Heap::get_integer_value, ACE_Configuration_Heap::get_string_value, and operator=. |
|
|
Definition at line 651 of file Configuration.h. |
|
|
Definition at line 653 of file Configuration.h. Referenced by ACE_Configuration_Heap::get_binary_value, and operator=. |
|
|
Definition at line 650 of file Configuration.h. |
|
|
Points to the string value or binary data or IS the integer Length is only used when type_ == BINARY Definition at line 648 of file Configuration.h. Referenced by ACE_Configuration_Heap::find_value, free, ACE_Configuration_Heap::get_binary_value, ACE_Configuration_Heap::get_integer_value, ACE_Configuration_Heap::get_string_value, and operator=. |
1.2.14 written by Dimitri van Heesch,
© 1997-2002