openshot-audio  0.1.7
juce_Uuid.h
Go to the documentation of this file.
1 /*
2  ==============================================================================
3 
4  This file is part of the juce_core module of the JUCE library.
5  Copyright (c) 2015 - ROLI Ltd.
6 
7  Permission to use, copy, modify, and/or distribute this software for any purpose with
8  or without fee is hereby granted, provided that the above copyright notice and this
9  permission notice appear in all copies.
10 
11  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD
12  TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN
13  NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
14  DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
15  IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
16  CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 
18  ------------------------------------------------------------------------------
19 
20  NOTE! This permissive ISC license applies ONLY to files within the juce_core module!
21  All other JUCE modules are covered by a dual GPL/commercial license, so if you are
22  using any other modules, be sure to check that you also comply with their license.
23 
24  For more details, visit www.juce.com
25 
26  ==============================================================================
27 */
28 
29 #ifndef JUCE_UUID_H_INCLUDED
30 #define JUCE_UUID_H_INCLUDED
31 
32 
33 //==============================================================================
44 {
45 public:
46  //==============================================================================
48  Uuid();
49 
51  ~Uuid() noexcept;
52 
54  Uuid (const Uuid&) noexcept;
55 
57  Uuid& operator= (const Uuid&) noexcept;
58 
59  //==============================================================================
61  bool isNull() const noexcept;
62 
64  static Uuid null() noexcept;
65 
66  bool operator== (const Uuid&) const noexcept;
67  bool operator!= (const Uuid&) const noexcept;
68 
69  //==============================================================================
77  String toString() const;
78 
82  String toDashedString() const;
83 
87  Uuid (const String& uuidString);
88 
92  Uuid& operator= (const String& uuidString);
93 
94 
95  //==============================================================================
101  const uint8* getRawData() const noexcept { return uuid; }
102 
106  Uuid (const uint8* rawData) noexcept;
107 
109  Uuid& operator= (const uint8* rawData) noexcept;
110 
111 
112 private:
113  //==============================================================================
114  uint8 uuid[16];
115  String getHexRegion (int, int) const;
116 
118 };
119 
120 
121 #endif // JUCE_UUID_H_INCLUDED
#define noexcept
Definition: juce_CompilerSupport.h:141
const uint8 * getRawData() const noexcept
Definition: juce_Uuid.h:101
Definition: juce_String.h:43
#define JUCE_API
Definition: juce_StandardHeader.h:139
bool operator==(const var &v1, const var &v2) noexcept
Definition: juce_Variant.cpp:565
Definition: juce_Uuid.h:43
#define JUCE_LEAK_DETECTOR(OwnerClass)
Definition: juce_LeakedObjectDetector.h:141
bool operator!=(const var &v1, const var &v2) noexcept
Definition: juce_Variant.cpp:566
unsigned char uint8
Definition: juce_MathsFunctions.h:43