r11146 - in libprelude/trunk/bindings/c++: . libprelude/trunk/bindings/c++/include

[email protected]
Newsgroups gmane.comp.security.ids.prelude.cvs
Message-ID <[email protected]>
Author: yoann
Date: 2009-04-20 15:21:43 +0200 (Mon, 20 Apr 2009)
New Revision: 11146

Modified:
   libprelude/trunk/bindings/c++/idmef-value.cxx
   libprelude/trunk/bindings/c++/include/idmef-value.hxx
Log:
Bind IDMEFValue::Match() method to idmef_value_match().

Modified: libprelude/trunk/bindings/c++/idmef-value.cxx
===================================================================
--- libprelude/trunk/bindings/c++/idmef-value.cxx	2009-04-15 13:34:05 UTC (rev 11145)
+++ libprelude/trunk/bindings/c++/idmef-value.cxx	2009-04-20 13:21:43 UTC (rev 11146)
@@ -189,6 +189,12 @@
 }
 
 
+int IDMEFValue::Match(const IDMEFValue &value, int op)
+{
+        return idmef_value_match(this->_value, value._value, (idmef_criterion_operator_t) op);
+}
+
+
 IDMEFValue IDMEFValue::Clone() const
 {
         int ret;

Modified: libprelude/trunk/bindings/c++/include/idmef-value.hxx
===================================================================
--- libprelude/trunk/bindings/c++/include/idmef-value.hxx	2009-04-15 13:34:05 UTC (rev 11145)
+++ libprelude/trunk/bindings/c++/include/idmef-value.hxx	2009-04-20 13:21:43 UTC (rev 11146)
@@ -59,6 +59,7 @@
                 IDMEFValue(double value);
                 IDMEFValue(Prelude::IDMEFTime &time);
 
+                int Match(const IDMEFValue &value, int op);
                 IDMEFValue Clone() const;
 
                 operator int32_t() const;

_______________________________________________
Prelude-cvslog site list
[email protected]
http://lists.prelude-ids.org/mailman/listinfo/prelude-cvslog
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.