COAR  1.0
COAR - DMS system
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups
coar_uuid.h
Go to the documentation of this file.
1 #ifndef COAR_UUID_H
2 #define COAR_UUID_H
3 
4 #include <uuid/uuid.h>
5 #include "coartypes.h"
8 {
9 
10 public:
13 
22  coar_uuid();
23  coar_uuid(uuid_t _uuid);
24  coar_uuid(coar_uuid_t _c_uuid);
25  coar_uuid(const coar_uuid& _uuid);
26  ~coar_uuid();
27  coar_uuid& operator=(const coar_uuid& _uuid);
28 
29  int operator<(const coar_uuid& _uuid) const;
30  bool operator==(const coar_uuid& _uuid) const;
31  bool operator==(const coar_uuid_t& _uuid) const;
32 
33  void clear();
36  void generate();
37 
38  std::string getAsString();
39  void getAsBytes(uuid_t u);
40  void getCOAR_UUID(coar_uuid_t cu);
41  bool isNull();
42  static coar_uuid* parse(coar_uuid_t uuid);
43  static coar_uuid* parse(const char* uuid);
44 
45 private:
46  coar_uuid_t c_uuid;
47  uuid_t uuid;
48  void clear_coar_uuid();
49 
50 };
51 
52 #endif // COAR_UUID_H