OWBI1_WQLOperation.hpp

Go to the documentation of this file.
00001 //%/////////////////////////////////////////////////////////////////////////////
00002 //
00003 // Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Company, IBM,
00004 // The Open Group, Tivoli Systems
00005 // Portions Copyright (C) 2003-2004 Vintela, Inc. All rights reserved.
00006 //
00007 // Permission is hereby granted, free of charge, to any person obtaining a copy
00008 // of this software and associated documentation files (the "Software"), to
00009 // deal in the Software without restriction, including without limitation the
00010 // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
00011 // sell copies of the Software, and to permit persons to whom the Software is
00012 // furnished to do so, subject to the following conditions:
00013 // 
00014 // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
00015 // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
00016 // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
00017 // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
00018 // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
00019 // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
00020 // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
00021 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
00022 //
00023 //==============================================================================
00024 //
00025 // Author: Mike Brasher (mbrasher@bmc.com)
00026 //
00027 // Modified By: Dan Nuffer
00028 //
00029 //%/////////////////////////////////////////////////////////////////////////////
00030 #ifndef OWBI1_WQL_OPERATION_HPP_INCLUDE_GUARD_
00031 #define OWBI1_WQL_OPERATION_HPP_INCLUDE_GUARD_
00032 #include "OWBI1_config.h"
00033 #include "OWBI1_String.hpp"
00034 
00035 namespace OWBI1
00036 {
00037 
00091 enum WQLOperation
00092 {
00093    WQL_OR,
00094    WQL_AND,
00095    WQL_NOT,
00096    WQL_EQ,
00097    WQL_NE,
00098    WQL_LT,
00099    WQL_LE,
00100    WQL_GT,
00101    WQL_GE,
00102    WQL_DO_NOTHING,
00103    WQL_ISA
00104 };
00105 inline String WQLOperationToString(WQLOperation op)
00106 {
00107    switch (op)
00108    {
00109       case WQL_OR:
00110          return "OR";
00111       case WQL_AND:
00112          return "AND";
00113       case WQL_NOT:
00114          return "NOT";
00115       case WQL_EQ:
00116          return "=";
00117       case WQL_NE:
00118          return "<>";
00119       case WQL_LT:
00120          return "<";
00121       case WQL_LE:
00122          return "<=";
00123       case WQL_GT:
00124          return ">";
00125       case WQL_GE:
00126          return ">=";
00127       case WQL_DO_NOTHING:
00128          return "**INTERNAL NOTHING OPERATOR**";
00129       case WQL_ISA:
00130          return "ISA";
00131    }
00132    return "Unknown";
00133 }
00134 
00135 } // end namespace OWBI1
00136 
00137 #endif

Generated on Thu Feb 9 08:48:29 2006 for openwbem by  doxygen 1.4.6