Panda3D
Loading...
Searching...
No Matches
bioStreamPtr.h
Go to the documentation of this file.
1/**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file bioStreamPtr.h
10 * @author drose
11 * @date 2002-10-15
12 */
13
14#ifndef BIOSTREAMPTR_H
15#define BIOSTREAMPTR_H
16
17#include "pandabase.h"
18
19// This module is not compiled if OpenSSL is not available.
20#ifdef HAVE_OPENSSL
21
22#include "bioStream.h"
23#include "referenceCount.h"
24
25/**
26 * A wrapper around an BioStream object to make a reference-counting pointer
27 * to it.
28 */
29class EXPCL_PANDA_DOWNLOADER BioStreamPtr : public ReferenceCount {
30public:
31 INLINE BioStreamPtr(BioStream *stream);
32 virtual ~BioStreamPtr();
33
34 INLINE BioStream &operator *() const;
35 INLINE BioStream *operator -> () const;
36 INLINE operator BioStream * () const;
37
38 INLINE void set_stream(BioStream *stream);
39 INLINE BioStream *get_stream() const;
40
41private:
42 BioStream *_stream;
43};
44
45#include "bioStreamPtr.I"
46
47#endif // HAVE_OPENSSL
48
49
50#endif
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A base class for all things that want to be reference-counted.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.