X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/87550f881db0f6583709f7797becb3eef7d5f254..46b0747592074017ff0ea4b33d4a7194235886e5:/projects/stargazer/plugins/other/smux/types.h diff --git a/projects/stargazer/plugins/other/smux/types.h b/projects/stargazer/plugins/other/smux/types.h deleted file mode 100644 index 7d7adac2..00000000 --- a/projects/stargazer/plugins/other/smux/types.h +++ /dev/null @@ -1,37 +0,0 @@ -#ifndef __TYPES_H__ -#define __TYPES_H__ - -#include -#include -#include - -#include "asn1/OBJECT_IDENTIFIER.h" - -class OID { - public: - OID(const std::string & str); - OID(const char * str, size_t length); - OID(const std::vector & arcs); - OID(const unsigned * arcs, size_t length); - OID(OBJECT_IDENTIFIER_t * oid); - OID(const OID & rvalue); - ~OID(); - - std::string ToString() const; - const std::vector & ToVector() const { return arcs; } - void ToOID(OBJECT_IDENTIFIER_t * oid) const; - - OID & operator=(const OID & rvalue); - bool operator==(const OID & rvalue) const; - bool operator!=(const OID & rvalue) const { return !operator==(rvalue); } - bool operator<(const OID & rvalue) const; - bool operator>(const OID & rvalue) const - { return !operator==(rvalue) && !operator<(rvalue); } - - friend std::ostream & operator<<(std::ostream & stream, const OID & oid); - - private: - std::vector arcs; -}; - -#endif