Zivid  1.0.1+3607.8a7510c4
Zivid API
SerialNumber.h
Go to the documentation of this file.
1 /*[
2  * This file is part of the Zivid 3D Camera API
3  *
4  * Copyright 2015-2018 (C) Zivid Labs. All rights reserved.
5  * Contact info@zividlabs.com or see http://www.zividlabs.com
6  *
7  * This code is proprietary and confidential.
8  * Unauthorized copying of this file, via any medium is strictly prohibited.
9 ]*/
10 
11 #pragma once
12 
15 
16 #include "APIExport.h"
17 #include <string>
18 
19 namespace Zivid
20 {
25  {
26  public:
28  ZIVID_COMMON explicit SerialNumber(const std::string& serialNumber);
29 
31  ZIVID_COMMON SerialNumber() = default;
32 
34  ZIVID_COMMON bool operator==(const SerialNumber& other) const;
35 
37  ZIVID_COMMON bool operator!=(const SerialNumber& other) const;
38 
40  ZIVID_COMMON std::string toString() const;
41 
42  private:
43  std::string m_serialNumber;
44  };
45 
49  ZIVID_COMMON std::ostream& operator<<(std::ostream& os, const SerialNumber& serialNumber);
50 }
ZIVID_COMMON bool operator==(const SerialNumber &other) const
Equality operator
ZIVID_COMMON bool operator!=(const SerialNumber &other) const
Inequality operator
Definition: Application.h:19
Definitions for export of DLL interfaces
ZIVID_COMMON SerialNumber()=default
Constructor
ZIVID_COMMON std::string toString() const
Get serial number as string
Serial number of a Zivid camera
Definition: SerialNumber.h:24
ZIVID_API std::ostream & operator<<(std::ostream &stream, const Camera &camera)
Serialize the value to a stream