#include <ndb_global.h>#include <Properties.hpp>#include <NdbTCP.h>#include <NdbOut.hpp>Include dependency graph for Properties.cpp:

Go to the source code of this file.
Definition at line 415 of file Properties.cpp.
00415 { 00416 Uint32 sum = 0; 00417 for(unsigned int i = 0; i<words; i++) 00418 sum ^= htonl(buf[i]); 00419 00420 return sum; 00421 }
| static char* f_strdup | ( | const char * | s | ) | [static] |
Definition at line 25 of file Properties.cpp.
References strdup().
Referenced by Properties::getCopy(), and PropertyImpl::PropertyImpl().
00025 { 00026 if(!s) return 0; 00027 return strdup(s); 00028 }
Here is the call graph for this function:

Here is the caller graph for this function:

| int mod4 | ( | unsigned int | i | ) |
| template bool put | ( | PropertiesImpl * | , | |
| const char * | , | |||
| const Properties * | , | |||
| bool | ||||
| ) |
| template bool put | ( | PropertiesImpl * | , | |
| const char * | , | |||
| const char * | , | |||
| bool | ||||
| ) |
| template bool put | ( | PropertiesImpl * | , | |
| const char * | , | |||
| Uint64 | , | |||
| bool | ||||
| ) |
| template bool put | ( | PropertiesImpl * | , | |
| const char * | , | |||
| Uint32 | , | |||
| bool | ||||
| ) |
| bool put | ( | PropertiesImpl * | impl, | |
| const char * | name, | |||
| T | value, | |||
| bool | replace | |||
| ) |
Definition at line 149 of file Properties.cpp.
References E_PROPERTIES_ELEMENT_ALREADY_EXISTS, E_PROPERTIES_INVALID_NAME, E_PROPERTIES_NO_SUCH_ELEMENT, PropertiesImpl::get(), PropertiesImpl::getPropsPut(), PropertiesImpl::put(), PropertiesImpl::remove(), and PropertiesImpl::setErrno().
Referenced by inflate(), inflateBack(), Properties::put(), and Properties::put64().
00149 { 00150 if(name == 0){ 00151 impl->setErrno(E_PROPERTIES_INVALID_NAME); 00152 return false; 00153 } 00154 00155 PropertiesImpl * tmp = 0; 00156 const char * short_name = impl->getPropsPut(name, &tmp); 00157 00158 if(tmp == 0){ 00159 impl->setErrno(E_PROPERTIES_NO_SUCH_ELEMENT); 00160 return false; 00161 } 00162 00163 if(tmp->get(short_name) != 0){ 00164 if(replace){ 00165 tmp->remove(short_name); 00166 } else { 00167 impl->setErrno(E_PROPERTIES_ELEMENT_ALREADY_EXISTS); 00168 return false; 00169 } 00170 } 00171 return tmp->put(new PropertyImpl(short_name, value)); 00172 }
Here is the call graph for this function:

Here is the caller graph for this function:

Error when unpacking No of items > 0 while size of buffer (left) <= 0
Definition at line 968 of file Properties.cpp.
Referenced by PropertiesImpl::unpack().
| const Uint32 E_PROPERTIES_ELEMENT_ALREADY_EXISTS = 4 |
Element already existed when using put, and replace was not specified
Definition at line 961 of file Properties.cpp.
Referenced by ParserImpl::parseArg(), and put().
Error when packing, can not allocate working buffer
Note: OS error is set
Definition at line 963 of file Properties.cpp.
Referenced by PropertiesImpl::pack().
Error when unpacking, can not allocate working buffer
Note: OS error is set
Definition at line 966 of file Properties.cpp.
Referenced by PropertiesImpl::unpack().
| const Uint32 E_PROPERTIES_INVALID_BUFFER_TO_SHORT = 7 |
When unpacking an buffer found that buffer is to short
Probably an invlaid buffer
Definition at line 965 of file Properties.cpp.
Referenced by Properties::unpack().
| const Uint32 E_PROPERTIES_INVALID_CHECKSUM = 9 |
Error when unpacking, invalid checksum
Definition at line 967 of file Properties.cpp.
Referenced by Properties::unpack().
| const Uint32 E_PROPERTIES_INVALID_NAME = 1 |
Invalid name in put, names can not contain Properties::delimiter
Definition at line 958 of file Properties.cpp.
Referenced by put().
| const Uint32 E_PROPERTIES_INVALID_TYPE = 3 |
Element had wrong type when using get
Definition at line 960 of file Properties.cpp.
Referenced by Properties::get(), and Properties::getCopy().
Invalid version on properties file you are trying to read
Definition at line 964 of file Properties.cpp.
Referenced by Properties::unpack().
| const Uint32 E_PROPERTIES_NO_SUCH_ELEMENT = 2 |
Element did not exist when using get
Definition at line 959 of file Properties.cpp.
Referenced by Properties::get(), Properties::getCopy(), Properties::getTypeOf(), and put().
| const Uint32 E_PROPERTIES_OK = 0 |
No error
Definition at line 957 of file Properties.cpp.
Referenced by Properties::get(), Properties::getCopy(), and Properties::getTypeOf().
1.4.7

