mirror of
https://github.com/fadden/ciderpress.git
synced 2024-09-28 11:54:49 +00:00
63b9996009
This updates all source files to use spaces instead of tabs for indentation. It also normalizes the end-of-line markers to be Windows-style CRLF, and ensures that all files end with EOL. No substantive changes were made; "diff -w" is empty.
57 lines
1.4 KiB
C++
57 lines
1.4 KiB
C++
/*
|
|
* CiderPress
|
|
* Copyright (C) 2007 by faddenSoft, LLC. All Rights Reserved.
|
|
* See the file LICENSE for distribution terms.
|
|
*/
|
|
/*
|
|
* Simple reformatters that can apply to anything.
|
|
*/
|
|
#ifndef __LR_SIMPLE__
|
|
#define __LR_SIMPLE__
|
|
|
|
#include "ReformatBase.h"
|
|
|
|
/*
|
|
* Fix the EOL markers on a text file.
|
|
*/
|
|
class ReformatEOL_HA : public ReformatText {
|
|
public:
|
|
ReformatEOL_HA(void) {}
|
|
virtual ~ReformatEOL_HA(void) {}
|
|
|
|
virtual void Examine(ReformatHolder* pHolder);
|
|
virtual int Process(const ReformatHolder* pHolder,
|
|
ReformatHolder::ReformatID id, ReformatHolder::ReformatPart part,
|
|
ReformatOutput* pOutput);
|
|
};
|
|
|
|
/*
|
|
* Do nothing.
|
|
*/
|
|
class ReformatRaw : public Reformat {
|
|
public:
|
|
ReformatRaw(void) {}
|
|
virtual ~ReformatRaw(void) {}
|
|
|
|
virtual void Examine(ReformatHolder* pHolder);
|
|
virtual int Process(const ReformatHolder* pHolder,
|
|
ReformatHolder::ReformatID id, ReformatHolder::ReformatPart part,
|
|
ReformatOutput* pOutput);
|
|
};
|
|
|
|
/*
|
|
* Reformat a block of data into a hex dump.
|
|
*/
|
|
class ReformatHexDump : public ReformatText {
|
|
public:
|
|
ReformatHexDump(void) {}
|
|
virtual ~ReformatHexDump(void) {}
|
|
|
|
virtual void Examine(ReformatHolder* pHolder);
|
|
virtual int Process(const ReformatHolder* pHolder,
|
|
ReformatHolder::ReformatID id, ReformatHolder::ReformatPart part,
|
|
ReformatOutput* pOutput);
|
|
};
|
|
|
|
#endif /*__LR_SIMPLE__*/
|