version 1.8, 2004/03/16 23:05:00
|
version 1.9, 2004/04/08 14:52:55
|
|
|
static struct ConfigPropertyRow properties[] = | static struct ConfigPropertyRow properties[] = |
{ | { |
{"repositoryDir", "repository", 0, 0, 0, 1}, | {"repositoryDir", "repository", 0, 0, 0, 1}, |
|
{"messageDir", "msg", 0, 0, 0, 1}, |
}; | }; |
| |
const Uint32 NUM_PROPERTIES = sizeof(properties) / sizeof(properties[0]); | const Uint32 NUM_PROPERTIES = sizeof(properties) / sizeof(properties[0]); |
|
|
FileSystemPropertyOwner::FileSystemPropertyOwner() | FileSystemPropertyOwner::FileSystemPropertyOwner() |
{ | { |
_repositoryDir = new ConfigProperty; | _repositoryDir = new ConfigProperty; |
|
_messageDir = new ConfigProperty; |
} | } |
| |
/** Destructor */ | /** Destructor */ |
FileSystemPropertyOwner::~FileSystemPropertyOwner() | FileSystemPropertyOwner::~FileSystemPropertyOwner() |
{ | { |
delete _repositoryDir; | delete _repositoryDir; |
|
delete _messageDir; |
} | } |
| |
/** | /** |
|
|
_repositoryDir->domainSize = properties[i].domainSize; | _repositoryDir->domainSize = properties[i].domainSize; |
_repositoryDir->externallyVisible = properties[i].externallyVisible; | _repositoryDir->externallyVisible = properties[i].externallyVisible; |
} | } |
|
else if (String::equalNoCase(properties[i].propertyName, "messageDir")) |
|
{ |
|
_messageDir->propertyName = properties[i].propertyName; |
|
_messageDir->defaultValue = properties[i].defaultValue; |
|
_messageDir->currentValue = properties[i].defaultValue; |
|
_messageDir->plannedValue = properties[i].defaultValue; |
|
_messageDir->dynamic = properties[i].dynamic; |
|
_messageDir->domain = properties[i].domain; |
|
_messageDir->domainSize = properties[i].domainSize; |
|
_messageDir->externallyVisible = properties[i].externallyVisible; |
|
} |
} | } |
} | } |
| |
|
|
{ | { |
return _repositoryDir; | return _repositoryDir; |
} | } |
|
if (String::equalNoCase(_messageDir->propertyName, name)) |
|
{ |
|
return _messageDir; |
|
} |
else | else |
{ | { |
throw UnrecognizedConfigProperty(name); | throw UnrecognizedConfigProperty(name); |