NX Open C++ 参考指南
2406 v1.1
载入中...
搜索中...
未找到
D:
Tan_NX2406C++
UGopenLib
NX2406
UGOPEN
NXOpen
TransientObject.hxx
1
/*******************************************************************************
2
Copyright (c) 2004 Unigraphics Solutions Inc.
3
Unpublished - All Rights Reserved
4
*******************************************************************************/
5
#ifndef NXOpen_TRANSIENTOBJECT_HXX_INCLUDED
6
#define NXOpen_TRANSIENTOBJECT_HXX_INCLUDED
7
#include <NXOpen/libnxopencpp_exports.hxx>
8
#ifdef _WIN32
9
// Disable "inherits by dominance" warning
10
#pragma warning( disable : 4250 )
11
#endif
12
namespace
NXOpen
13
{
19
class
NXOPENCPPEXPORT
TransientObject
20
{
23
public
:
void
*
GetHandle
()
24
{
25
return
m_pointer;
26
}
27
28
protected
:
void
*m_pointer;
29
protected
:
explicit
TransientObject
(
void
*ptr) : m_pointer(ptr)
30
{
31
}
32
protected
: TransientObject() : m_pointer(0)
33
{
34
}
35
public
:
virtual
~TransientObject()
36
{
37
m_pointer=NULL;
38
}
39
void
PrintTestData(
const
char
*classname,
const
char
*name,
int
line);
41
};
42
}
43
#undef EXPORTLIBRARY
44
#endif
//NXOpen_TRANSIENTOBJECT_HXX_INCLUDED