![]() ![]() |
![]() |
File: [Pegasus] / pegasus / src / Pegasus / Provider / Attic / OperationFlag.cpp
(download)
Revision: 1.4, Tue Jan 8 19:37:57 2002 UTC (22 years, 5 months ago) by chip Branch: MAIN CVS Tags: pre-meta-dispatcher, async_dispatcher, VERSION_1_09, VERSION_1_08, VERSION_1_07 Changes since 1.3: +19 -0 lines add OperationFlag::convert |
//%///////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2000, 2001 The Open group, BMC Software, Tivoli Systems, IBM // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to // deal in the Software without restriction, including without limitation the // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or // sell copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // //============================================================================== // // Author: Chip Vincent (cvincent@us.ibm.com) // // Modified By: // //%///////////////////////////////////////////////////////////////////////////// #include "OperationFlag.h" PEGASUS_NAMESPACE_BEGIN const Uint32 OperationFlag::NONE = 0x00000000; const Uint32 OperationFlag::LOCAL_ONLY = 0x00000001; const Uint32 OperationFlag::INCLUDE_QUALIFIERS = 0x00000002; const Uint32 OperationFlag::INCLUDE_CLASS_ORIGIN = 0x00000004; const Uint32 OperationFlag::DEEP_INHERITANCE = 0x00000008; const Uint32 OperationFlag::PARTIAL_INSTANCE = 0x00000010; const Uint32 OperationFlag::REMOTE_ONLY = 0x00000020; Uint32 OperationFlag::convert( const Boolean localOnly, const Boolean includeQualifiers, const Boolean includeClassOrigin, const Boolean deepInheritance, const Boolean partialInstance, const Boolean remoteOnly) { Uint32 flags = NONE; flags |= localOnly ? LOCAL_ONLY : 0; flags |= includeQualifiers ? INCLUDE_QUALIFIERS : 0; flags |= includeClassOrigin ? INCLUDE_CLASS_ORIGIN : 0; flags |= deepInheritance ? DEEP_INHERITANCE : 0; flags |= partialInstance ? PARTIAL_INSTANCE : 0; flags |= remoteOnly ? REMOTE_ONLY : 0; return(flags); } PEGASUS_NAMESPACE_END
No CVS admin address has been configured |
Powered by ViewCVS 0.9.2 |