You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nmWATI/Include/mData/mProjectManager/DataModels/ZxDataObjectStrUser.h

58 lines
1.3 KiB
C++

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#pragma once
#include "ZxDataObjectStr.h"
// DataObjectStrUser
class M_PROJECTMANAGER_EXPORT ZxDataObjectStrUser
: public ZxDataObjectStr
{
// ZX_DECLARE_DYNAMIC
public:
ZxDataObjectStrUser(ZxDataObject *pParent);
ZxDataObjectStrUser(const ZxDataObjectStrUser& other);
virtual ~ZxDataObjectStrUser();
ZxDataObjectStrUser &operator = (const ZxDataObjectStrUser& other);
bool operator == (const ZxDataObjectStrUser& other) const;
bool operator != (const ZxDataObjectStrUser& other) const;
public:
// 接口
virtual ZxDataObject* clone();
// 20240604为了方便新增内部解析
virtual bool _parseData(VecVariant vec, int& n);
virtual bool _sumUpData(VecVariant& vec);
// 序列化
virtual void onSerialize(ZxSerializer* ser);
virtual void onDeserialize(ZxSerializer* ser);
public:
void setCreator(const QString& s);
QString getCreator() const;
void setCreatedTime(const QString& s);
QString getCreatedTime() const;
void setModifier(const QString& s);
QString getModifier() const;
void setModifiedTime(const QString& s);
QString getModifiedTime() const;
protected:
QString m_sCreator; //项目创建人
QString m_sCreatedTime;//项目创建时间
QString m_sModifier; //项目修改人
QString m_sModifiedTime;//项目修改时间
};