OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimId.h
Go to the documentation of this file.
1 //*******************************************************************
2 // Copyright (C) 2000 ImageLinks Inc.
3 //
4 // License: See top level LICENSE.txt file.
5 //
6 // Author: Garrett Potts
7 //
8 //*************************************************************************
9 // $Id: ossimId.h 20314 2011-12-01 21:46:37Z oscarkramer $
10 #ifndef ossimId_HEADER
11 #define ossimId_HEADER
12 
13 #include <iosfwd>
15 
17 {
18 public:
19  friend OSSIM_DLL std::ostream& operator <<(std::ostream &out, const ossimId& data);
20 
21  explicit ossimId(ossim_int64 id = 0)
22  :theId(id)
23  {}
24  virtual ~ossimId(){}
25 
26  virtual void print(std::ostream& out)const;
27 
28  void setId(ossim_int64 id){theId = id;}
29  ossim_int64 getId()const{return theId;}
30 
31  bool operator ==(const ossimId& rhs)const
32  {
33  return (theId == rhs.theId);
34  }
35  bool operator !=(const ossimId& rhs)const
36  {
37  return (theId != rhs.theId);
38  }
39 
40  bool operator == (ossim_int64 rhs) const
41  {
42  return (theId == rhs);
43  }
44  bool operator != (ossim_int64 rhs) const
45  {
46  return (theId != rhs);
47  }
48 
49  bool operator <(const ossimId& rhs)const
50  {
51  return (theId < rhs.theId);
52  }
53  bool operator <=(const ossimId& rhs)const
54  {
55  return (theId <= rhs.theId);
56  }
57  bool operator >(const ossimId& rhs)const
58  {
59  return (theId > rhs.theId);
60  }
61  bool operator >=(const ossimId& rhs)const
62  {
63  return (theId >= rhs.theId);
64  }
65 
66  bool operator <(ossim_int64 rhs)const
67  {
68  return (theId < rhs);
69  }
70  bool operator >(ossim_int64 rhs)const
71  {
72  return (theId > rhs);
73  }
74  bool operator <=(ossim_int64 rhs)const
75  {
76  return (theId <= rhs);
77  }
78  bool operator >=(ossim_int64 rhs)const
79  {
80  return (theId >= rhs);
81  }
82 
83  static const ossim_int64 INVALID_ID;
84 protected:
86 };
87 
88 #endif
ossim_int64 theId
Definition: ossimId.h:85
bool operator!=(const ossimRefPtr< _Tp1 > &__a, const ossimRefPtr< _Tp2 > &__b) noexcept
Definition: ossimRefPtr.h:111
static const ossim_int64 INVALID_ID
Definition: ossimId.h:83
std::ostream & print(H5::H5File *file, std::ostream &out)
Print method.
Definition: ossimH5Util.cpp:41
ossim_int64 getId() const
Definition: ossimId.h:29
ostream & operator<<(ostream &out, const ossimAxes &axes)
Definition: ossimAxes.h:88
bool operator<(const BaseMatrix &A, const BaseMatrix &)
Definition: newmat.h:1734
virtual ~ossimId()
Definition: ossimId.h:24
bool operator>(const BaseMatrix &A, const BaseMatrix &)
Definition: newmat.h:1736
bool operator>=(const BaseMatrix &A, const BaseMatrix &)
Definition: newmat.h:1732
bool operator==(const ossimRefPtr< _Tp1 > &__a, const ossimRefPtr< _Tp2 > &__b) noexcept
Definition: ossimRefPtr.h:101
void setId(ossim_int64 id)
Definition: ossimId.h:28
#define OSSIM_DLL
long long ossim_int64
bool operator<=(const BaseMatrix &A, const BaseMatrix &)
Definition: newmat.h:1730
ossimId(ossim_int64 id=0)
Definition: ossimId.h:21
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23