Files
opennurbs/example_userdata/example_ud.h
Bozo The Builder 7eae26b304 Sync changes from upstream repository
Co-authored-by: Alain <alain@mcneel.com>
Co-authored-by: Andrew Le Bihan <andy@mcneel.com>
Co-authored-by: Bozo <bozo@mcneel.com>
Co-authored-by: chuck <chuck@mcneel.com>
Co-authored-by: Dale Fugier <dale@mcneel.com>
Co-authored-by: Giulio Piacentino <giulio@mcneel.com>
Co-authored-by: John Croudy <croudyj@gmail.com>
Co-authored-by: Mikko Oksanen <mikko@mcneel.com>
Co-authored-by: Pierre Cuvilliers <pierre@mcneel.com>
Co-authored-by: Steve Baer <steve@mcneel.com>
2022-08-08 05:51:20 -07:00

30 lines
774 B
C++

#if !defined(OPENNURBS_EXAMPLE_UD_INC_)
#define OPENNURBS_EXAMPLE_UD_INC_
class CExampleWriteUserData : public ON_UserData
{
static int m__sn;
ON_OBJECT_DECLARE(CExampleWriteUserData);
public:
static ON_UUID Id();
CExampleWriteUserData();
virtual ~CExampleWriteUserData();
CExampleWriteUserData( const char* s);
CExampleWriteUserData(const CExampleWriteUserData& src);
CExampleWriteUserData& operator=(const CExampleWriteUserData& src);
void Dump( ON_TextLog& text_log ) const override;
bool GetDescription( ON_wString& description ) override;
bool Archive() const override;
bool Write(ON_BinaryArchive& file) const override;
bool Read(ON_BinaryArchive& file) override;
ON_wString m_str;
int m_sn;
};
#endif