version 1.26.2.3, 2005/03/30 20:44:55
|
version 1.31, 2005/03/29 23:43:38
|
|
|
//%2004//////////////////////////////////////////////////////////////////////// |
//%2005//////////////////////////////////////////////////////////////////////// |
// | // |
// 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. |
// | // |
// 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 |
|
|
} | } |
| |
// | // |
|
// SubscriptionFilterQueryContainer |
|
// |
|
|
|
class SubscriptionFilterQueryContainerRep |
|
{ |
|
public: |
|
String filterQuery; |
|
String queryLanguage; |
|
CIMNamespaceName sourceNameSpace; |
|
}; |
|
|
|
const String SubscriptionFilterQueryContainer::NAME = |
|
"SubscriptionFilterQueryContainer"; |
|
|
|
SubscriptionFilterQueryContainer::SubscriptionFilterQueryContainer |
|
(const OperationContext::Container & container) |
|
{ |
|
const SubscriptionFilterQueryContainer * p = |
|
dynamic_cast<const SubscriptionFilterQueryContainer *>(&container); |
|
|
|
if(p == 0) |
|
{ |
|
throw DynamicCastFailedException(); |
|
} |
|
|
|
_rep = new SubscriptionFilterQueryContainerRep(); |
|
_rep->filterQuery = p->_rep->filterQuery; |
|
_rep->queryLanguage = p->_rep->queryLanguage; |
|
_rep->sourceNameSpace = p->_rep->sourceNameSpace; |
|
} |
|
|
|
SubscriptionFilterQueryContainer::SubscriptionFilterQueryContainer |
|
(const SubscriptionFilterQueryContainer & container) |
|
#if defined(PEGASUS_PLATFORM_LINUX_GENERIC_GNU) |
|
: OperationContext::Container() |
|
#endif |
|
{ |
|
_rep = new SubscriptionFilterQueryContainerRep(); |
|
_rep->filterQuery = container._rep->filterQuery; |
|
_rep->queryLanguage = container._rep->queryLanguage; |
|
_rep->sourceNameSpace = container._rep->sourceNameSpace; |
|
} |
|
|
|
SubscriptionFilterQueryContainer::SubscriptionFilterQueryContainer( |
|
const String & filterQuery, |
|
const String & queryLanguage, |
|
const CIMNamespaceName & sourceNameSpace) |
|
{ |
|
_rep = new SubscriptionFilterQueryContainerRep(); |
|
_rep->filterQuery = filterQuery; |
|
_rep->queryLanguage = queryLanguage; |
|
_rep->sourceNameSpace = sourceNameSpace; |
|
} |
|
|
|
SubscriptionFilterQueryContainer::~SubscriptionFilterQueryContainer |
|
(void) |
|
{ |
|
delete _rep; |
|
} |
|
SubscriptionFilterQueryContainer & |
|
SubscriptionFilterQueryContainer::operator=( |
|
const SubscriptionFilterQueryContainer & container) |
|
{ |
|
if (this == &container) |
|
{ |
|
return (*this); |
|
} |
|
|
|
_rep->filterQuery = container._rep->filterQuery; |
|
_rep->queryLanguage = container._rep->queryLanguage; |
|
_rep->sourceNameSpace = container._rep->sourceNameSpace; |
|
|
|
return (*this); |
|
} |
|
|
|
String SubscriptionFilterQueryContainer::getName(void) const |
|
{ |
|
return(NAME); |
|
} |
|
|
|
OperationContext::Container * SubscriptionFilterQueryContainer::clone(void) const |
|
{ |
|
return(new SubscriptionFilterQueryContainer(_rep->filterQuery, |
|
_rep->queryLanguage, |
|
_rep->sourceNameSpace)); |
|
} |
|
|
|
void SubscriptionFilterQueryContainer::destroy(void) |
|
{ |
|
delete this; |
|
} |
|
|
|
String SubscriptionFilterQueryContainer::getFilterQuery(void) const |
|
{ |
|
return(_rep->filterQuery); |
|
} |
|
|
|
String SubscriptionFilterQueryContainer::getQueryLanguage(void) const |
|
{ |
|
return(_rep->queryLanguage); |
|
} |
|
|
|
CIMNamespaceName SubscriptionFilterQueryContainer::getSourceNameSpace(void) const |
|
{ |
|
return(_rep->sourceNameSpace); |
|
} |
|
|
|
// Unimplemented, hidden constructor not intended for actual use |
|
SubscriptionFilterQueryContainer::SubscriptionFilterQueryContainer() |
|
{ |
|
} |
|
|
|
// |
// TimeoutContainer | // TimeoutContainer |
// | // |
| |