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.

37 lines
775 B
C

1 year ago
#pragma once
#include <string>
#include "data/Data.h"
/*
*
*
*
*/
class NullData : public Data
{
public:
NullData();
NullData(int year, int month, int day, int hour, int minute, int second);
virtual ~NullData() {};
Data* clone() override;
void copy(Data* data) override;
void copy(Data& data) override;
int length() override { return 0; };
// 转换为字符串格式
virtual std::string toStr() override;
// 转换为Byte字符串
virtual std::string toByteStr() override;
// 转换为十六进制字符串
virtual std::string toHexStr() override;
// 根据Byte字符串解析数据
virtual bool fromByteStr(std::string str = "") override;
private:
//std::string m_data;
};