Disable copy constructors. Eliminates some W4 warnings.

This commit is contained in:
castano 2008-01-17 20:39:59 +00:00
parent 204d6381f3
commit 593cce308a

View File

@ -29,6 +29,7 @@ inline FILE * fileOpen(const char * fileName, const char * mode)
/// Base stdio stream. /// Base stdio stream.
class NVCORE_CLASS StdStream : public Stream class NVCORE_CLASS StdStream : public Stream
{ {
NV_FORBID_COPY(StdStream);
public: public:
/// Ctor. /// Ctor.
@ -101,6 +102,7 @@ protected:
/// Standard output stream. /// Standard output stream.
class NVCORE_CLASS StdOutputStream : public StdStream class NVCORE_CLASS StdOutputStream : public StdStream
{ {
NV_FORBID_COPY(StdOutputStream);
public: public:
/// Construct stream by file name. /// Construct stream by file name.
@ -139,6 +141,7 @@ public:
/// Standard input stream. /// Standard input stream.
class NVCORE_CLASS StdInputStream : public StdStream class NVCORE_CLASS StdInputStream : public StdStream
{ {
NV_FORBID_COPY(StdInputStream);
public: public:
/// Construct stream by file name. /// Construct stream by file name.
@ -177,6 +180,7 @@ public:
/// Memory input stream. /// Memory input stream.
class NVCORE_CLASS MemoryInputStream : public Stream class NVCORE_CLASS MemoryInputStream : public Stream
{ {
NV_FORBID_COPY(MemoryInputStream);
public: public:
/// Ctor. /// Ctor.
@ -256,6 +260,7 @@ private:
/// Protected input stream. /// Protected input stream.
class NVCORE_CLASS ProtectedStream : public Stream class NVCORE_CLASS ProtectedStream : public Stream
{ {
NV_FORBID_COPY(ProtectedStream);
public: public:
/// Ctor. /// Ctor.