version 1.29, 2005/01/30 07:43:25
|
version 1.35, 2006/02/10 19:13:46
|
|
|
//%2004//////////////////////////////////////////////////////////////////////// |
//%2006//////////////////////////////////////////////////////////////////////// |
// | // |
// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development | // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development |
// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. | // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. |
|
|
// IBM Corp.; EMC Corporation, The Open Group. | // IBM Corp.; EMC Corporation, The Open Group. |
// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; | // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; |
// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. | // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. |
|
// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
|
// EMC Corporation; VERITAS Software Corporation; The Open Group. |
|
// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
|
// EMC Corporation; Symantec Corporation; The Open Group. |
// | // |
// Permission is hereby granted, free of charge, to any person obtaining a copy | // Permission is hereby granted, free of charge, to any person obtaining a copy |
// of this software and associated documentation files (the "Software"), to | // of this software and associated documentation files (the "Software"), to |
|
|
const OperationContext::Container & OperationContext::get( | const OperationContext::Container & OperationContext::get( |
const String& containerName) const | const String& containerName) const |
{ | { |
for(Uint32 i = 0, n = _rep->containers.size(); i < n; i++) |
Uint32 size = _rep->containers.size(); |
{ |
Container** data = (Container**)_rep->containers.getData(); |
if(containerName == _rep->containers[i]->getName()) |
|
{ |
|
Container * p = _rep->containers[i]; |
|
| |
return(*p); |
for (; size--; data++) |
} |
if (data[0]->getName() == containerName) |
} |
return *(data[0]); |
| |
//l10n |
static Exception _exception(MessageLoaderParms( |
MessageLoaderParms parms("Common.OperationContext.OBJECT_NOT_FOUND", |
"Common.OperationContext.OBJECT_NOT_FOUND", "object not found")); |
"object not found"); |
|
throw Exception(parms); |
throw Exception(_exception); |
//throw Exception("object not found"); |
|
} | } |
| |
void OperationContext::set(const OperationContext::Container & container) | void OperationContext::set(const OperationContext::Container & container) |
|
|
} | } |
| |
IdentityContainer::IdentityContainer(const IdentityContainer & container) | IdentityContainer::IdentityContainer(const IdentityContainer & container) |
|
#if defined(PEGASUS_PLATFORM_LINUX_GENERIC_GNU) |
|
: OperationContext::Container() |
|
#endif |
{ | { |
_rep = new IdentityContainerRep(); | _rep = new IdentityContainerRep(); |
_rep->userName = container._rep->userName; | _rep->userName = container._rep->userName; |
|
|
return(_rep->userName); | return(_rep->userName); |
} | } |
| |
// Unimplemented, hidden constructor not intended for actual use |
|
IdentityContainer::IdentityContainer() |
|
{ |
|
} |
|
| |
// | // |
// SubscriptionInstanceContainer | // SubscriptionInstanceContainer |
|
|
| |
SubscriptionInstanceContainer::SubscriptionInstanceContainer | SubscriptionInstanceContainer::SubscriptionInstanceContainer |
(const SubscriptionInstanceContainer & container) | (const SubscriptionInstanceContainer & container) |
|
#if defined(PEGASUS_PLATFORM_LINUX_GENERIC_GNU) |
|
: OperationContext::Container() |
|
#endif |
{ | { |
_rep = new SubscriptionInstanceContainerRep(); | _rep = new SubscriptionInstanceContainerRep(); |
_rep->subscriptionInstance = container._rep->subscriptionInstance; | _rep->subscriptionInstance = container._rep->subscriptionInstance; |
|
|
return(_rep->subscriptionInstance); | return(_rep->subscriptionInstance); |
} | } |
| |
// Unimplemented, hidden constructor not intended for actual use |
|
SubscriptionInstanceContainer::SubscriptionInstanceContainer() |
|
{ |
|
} |
|
| |
// | // |
// SubscriptionInstanceNamesContainer | // SubscriptionInstanceNamesContainer |
|
|
| |
SubscriptionInstanceNamesContainer::SubscriptionInstanceNamesContainer | SubscriptionInstanceNamesContainer::SubscriptionInstanceNamesContainer |
(const SubscriptionInstanceNamesContainer & container) | (const SubscriptionInstanceNamesContainer & container) |
|
#if defined(PEGASUS_PLATFORM_LINUX_GENERIC_GNU) |
|
: OperationContext::Container() |
|
#endif |
{ | { |
_rep = new SubscriptionInstanceNamesContainerRep(); | _rep = new SubscriptionInstanceNamesContainerRep(); |
_rep->subscriptionInstanceNames = container._rep->subscriptionInstanceNames; | _rep->subscriptionInstanceNames = container._rep->subscriptionInstanceNames; |
|
|
return(_rep->subscriptionInstanceNames); | return(_rep->subscriptionInstanceNames); |
} | } |
| |
// Unimplemented, hidden constructor not intended for actual use |
|
SubscriptionInstanceNamesContainer::SubscriptionInstanceNamesContainer() |
|
{ |
|
} |
|
| |
// | // |
// SubscriptionFilterConditionContainer | // SubscriptionFilterConditionContainer |
|
|
| |
SubscriptionFilterConditionContainer::SubscriptionFilterConditionContainer | SubscriptionFilterConditionContainer::SubscriptionFilterConditionContainer |
(const SubscriptionFilterConditionContainer & container) | (const SubscriptionFilterConditionContainer & container) |
|
#if defined(PEGASUS_PLATFORM_LINUX_GENERIC_GNU) |
|
: OperationContext::Container() |
|
#endif |
{ | { |
_rep = new SubscriptionFilterConditionContainerRep(); | _rep = new SubscriptionFilterConditionContainerRep(); |
_rep->filterCondition = container._rep->filterCondition; | _rep->filterCondition = container._rep->filterCondition; |
|
|
return(_rep->queryLanguage); | return(_rep->queryLanguage); |
} | } |
| |
// Unimplemented, hidden constructor not intended for actual use |
|
SubscriptionFilterConditionContainer::SubscriptionFilterConditionContainer() |
|
{ |
|
} |
|
| |
// | // |
// SubscriptionFilterQueryContainer | // SubscriptionFilterQueryContainer |
|
|
| |
SubscriptionFilterQueryContainer::SubscriptionFilterQueryContainer | SubscriptionFilterQueryContainer::SubscriptionFilterQueryContainer |
(const SubscriptionFilterQueryContainer & container) | (const SubscriptionFilterQueryContainer & container) |
|
#if defined(PEGASUS_PLATFORM_LINUX_GENERIC_GNU) |
|
: OperationContext::Container() |
|
#endif |
{ | { |
_rep = new SubscriptionFilterQueryContainerRep(); | _rep = new SubscriptionFilterQueryContainerRep(); |
_rep->filterQuery = container._rep->filterQuery; | _rep->filterQuery = container._rep->filterQuery; |
|
|
return(_rep->sourceNameSpace); | return(_rep->sourceNameSpace); |
} | } |
| |
// Unimplemented, hidden constructor not intended for actual use |
|
SubscriptionFilterQueryContainer::SubscriptionFilterQueryContainer() |
|
{ |
|
} |
|
| |
// | // |
// TimeoutContainer | // TimeoutContainer |
|
|
class AcceptLanguageListContainerRep | class AcceptLanguageListContainerRep |
{ | { |
public: | public: |
AcceptLanguages languages; |
AcceptLanguageList languages; |
}; | }; |
| |
const String AcceptLanguageListContainer::NAME = | const String AcceptLanguageListContainer::NAME = |
|
|
| |
AcceptLanguageListContainer::AcceptLanguageListContainer | AcceptLanguageListContainer::AcceptLanguageListContainer |
(const AcceptLanguageListContainer & container) | (const AcceptLanguageListContainer & container) |
|
#if defined(PEGASUS_PLATFORM_LINUX_GENERIC_GNU) |
|
: OperationContext::Container() |
|
#endif |
{ | { |
_rep = new AcceptLanguageListContainerRep(); | _rep = new AcceptLanguageListContainerRep(); |
_rep->languages = container._rep->languages; | _rep->languages = container._rep->languages; |
} | } |
| |
AcceptLanguageListContainer::AcceptLanguageListContainer | AcceptLanguageListContainer::AcceptLanguageListContainer |
(const AcceptLanguages & languages) |
(const AcceptLanguageList & languages) |
{ | { |
_rep = new AcceptLanguageListContainerRep(); | _rep = new AcceptLanguageListContainerRep(); |
_rep->languages = languages; | _rep->languages = languages; |
|
|
delete this; | delete this; |
} | } |
| |
AcceptLanguages AcceptLanguageListContainer::getLanguages(void) const |
AcceptLanguageList AcceptLanguageListContainer::getLanguages(void) const |
{ | { |
return(_rep->languages); | return(_rep->languages); |
} | } |
| |
// Unimplemented, hidden constructor not intended for actual use |
|
AcceptLanguageListContainer::AcceptLanguageListContainer() |
|
{ |
|
} |
|
| |
// | // |
// SubscriptionLanguageListContainer | // SubscriptionLanguageListContainer |
|
|
class SubscriptionLanguageListContainerRep | class SubscriptionLanguageListContainerRep |
{ | { |
public: | public: |
AcceptLanguages languages; |
AcceptLanguageList languages; |
}; | }; |
| |
const String SubscriptionLanguageListContainer::NAME = | const String SubscriptionLanguageListContainer::NAME = |
|
|
| |
SubscriptionLanguageListContainer::SubscriptionLanguageListContainer | SubscriptionLanguageListContainer::SubscriptionLanguageListContainer |
(const SubscriptionLanguageListContainer & container) | (const SubscriptionLanguageListContainer & container) |
|
#if defined(PEGASUS_PLATFORM_LINUX_GENERIC_GNU) |
|
: OperationContext::Container() |
|
#endif |
{ | { |
_rep = new SubscriptionLanguageListContainerRep(); | _rep = new SubscriptionLanguageListContainerRep(); |
_rep->languages = container._rep->languages; | _rep->languages = container._rep->languages; |
} | } |
| |
SubscriptionLanguageListContainer::SubscriptionLanguageListContainer | SubscriptionLanguageListContainer::SubscriptionLanguageListContainer |
(const AcceptLanguages & languages) |
(const AcceptLanguageList & languages) |
{ | { |
_rep = new SubscriptionLanguageListContainerRep(); | _rep = new SubscriptionLanguageListContainerRep(); |
_rep->languages = languages; | _rep->languages = languages; |
|
|
delete this; | delete this; |
} | } |
| |
AcceptLanguages SubscriptionLanguageListContainer::getLanguages(void) const |
AcceptLanguageList SubscriptionLanguageListContainer::getLanguages(void) const |
{ | { |
return(_rep->languages); | return(_rep->languages); |
} | } |
| |
// Unimplemented, hidden constructor not intended for actual use |
|
SubscriptionLanguageListContainer::SubscriptionLanguageListContainer() |
|
{ |
|
} |
|
| |
// | // |
// ContentLanguageListContainer | // ContentLanguageListContainer |
|
|
class ContentLanguageListContainerRep | class ContentLanguageListContainerRep |
{ | { |
public: | public: |
ContentLanguages languages; |
ContentLanguageList languages; |
}; | }; |
| |
const String ContentLanguageListContainer::NAME = | const String ContentLanguageListContainer::NAME = |
|
|
| |
ContentLanguageListContainer::ContentLanguageListContainer | ContentLanguageListContainer::ContentLanguageListContainer |
(const ContentLanguageListContainer & container) | (const ContentLanguageListContainer & container) |
|
#if defined(PEGASUS_PLATFORM_LINUX_GENERIC_GNU) |
|
: OperationContext::Container() |
|
#endif |
{ | { |
_rep = new ContentLanguageListContainerRep(); | _rep = new ContentLanguageListContainerRep(); |
_rep->languages = container._rep->languages; | _rep->languages = container._rep->languages; |
} | } |
| |
ContentLanguageListContainer::ContentLanguageListContainer | ContentLanguageListContainer::ContentLanguageListContainer |
(const ContentLanguages & languages) |
(const ContentLanguageList & languages) |
{ | { |
_rep = new ContentLanguageListContainerRep(); | _rep = new ContentLanguageListContainerRep(); |
_rep->languages = languages; | _rep->languages = languages; |
|
|
delete this; | delete this; |
} | } |
| |
ContentLanguages ContentLanguageListContainer::getLanguages(void) const |
ContentLanguageList ContentLanguageListContainer::getLanguages(void) const |
{ | { |
return(_rep->languages); | return(_rep->languages); |
} | } |
| |
// Unimplemented, hidden constructor not intended for actual use |
|
ContentLanguageListContainer::ContentLanguageListContainer() |
|
{ |
|
} |
|
| |
// l10n end | // l10n end |
| |
|
|
| |
SnmpTrapOidContainer::SnmpTrapOidContainer | SnmpTrapOidContainer::SnmpTrapOidContainer |
(const SnmpTrapOidContainer & container) | (const SnmpTrapOidContainer & container) |
|
#if defined(PEGASUS_PLATFORM_LINUX_GENERIC_GNU) |
|
: OperationContext::Container() |
|
#endif |
{ | { |
_rep = new SnmpTrapOidContainerRep(); | _rep = new SnmpTrapOidContainerRep(); |
_rep->snmpTrapOid = container._rep->snmpTrapOid; | _rep->snmpTrapOid = container._rep->snmpTrapOid; |
|
|
return(_rep->snmpTrapOid); | return(_rep->snmpTrapOid); |
} | } |
| |
// Unimplemented, hidden constructor not intended for actual use |
|
SnmpTrapOidContainer::SnmpTrapOidContainer() |
|
{ |
|
} |
|
|
|
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |