Re: [AGENT++] Oid::RnCompare()

Karl Abicht karl at abicht.info
Mon Aug 22 07:40:46 CEST 2005


Hi Jochen,

> --- Ursprüngliche Nachricht ---
> Von: Jochen Katz <katz at agentpp.com>
> An: agentpp at agentpp.org
> Betreff: Re: [AGENT++] Oid::RnCompare()
> Datum: Sat, 20 Aug 2005 00:30:15 +0200
> 
> Hi Karl,
> 
> > this method compares n places of two OIDs from right to left.
> > But, it only works if the OIDs have the same length.
> 
> after your mail I tested with oids of the sae length, so it worked...
> 
> > If the length is different it returns nonsense.
> 
> Ok, you possibly expected that this function does something like
>  return this->reversed().nCompare(n, o.reversed());
> 
> where "1.3.5.6.3".reversed() returns "3.6.5.3.1"

Exactly. I've tried to check if an OID ends with '.0' using this method.
Don't work.

There are other methods/operators to do this check.

> 
> Regards,
>   Jochen
> 
> _______________________________________________
> AGENTPP mailing list
> AGENTPP at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/agentpp
> 

Thanks,

Karl

-- 
Dipl.-Ing. Karl Abicht
Eichenweg 11
25582 Hohenaspe

mailto: karl at abicht.net
phone: +49 4893 373115
mobile: +49 172 4566432
site: http://www.abicht.net


-- 
Dipl.-Ing. Karl Abicht
Eichenweg 11
25582 Hohenaspe

mailto: karl at abicht.net
phone: +49 4893 373115
mobile: +49 172 4566432
site: http://www.abicht.net



More information about the AGENTPP mailing list