📄 line.cpp
字号:
// Line.cpp: implementation of the CLine class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "Text.h"
#include "Line.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
IMPLEMENT_SERIAL(CLine,CObject,0)
CLine::CLine()
{
m_bResult = TRUE;
}
CLine::~CLine()
{
}
//
// Stream inserters to write the objects through
// a CArchive object.
//
//
// Operator overloads to set the data string.
//
CLine& CLine::operator=(CLine &Line)
{
m_Line = Line.m_Line;
return (*this);
}
CArchive& operator<<(CArchive& ar, CLine& Line)
{
const char *CrLf = "\r\n";
ar.WriteString((LPCSTR) Line.m_Line);
ar.Write(CrLf, strlen (CrLf));
return (ar);
}
CArchive& operator>>(CArchive& ar, CLine& Line)
{
Line.m_bResult = ar.ReadString(Line.m_Line);
return (ar);
}
CString& CLine::GetData()
{
return (m_Line);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -