mirror of
https://github.com/fadden/ciderpress.git
synced 2024-12-21 14:30:02 +00:00
c78017b1d2
Moved comments and return types, switched to uint types, added "override" keyword.
57 lines
1.5 KiB
C++
57 lines
1.5 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 REFORMAT_SIMPLE_H
|
|
#define REFORMAT_SIMPLE_H
|
|
|
|
#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) override;
|
|
virtual int Process(const ReformatHolder* pHolder,
|
|
ReformatHolder::ReformatID id, ReformatHolder::ReformatPart part,
|
|
ReformatOutput* pOutput) override;
|
|
};
|
|
|
|
/*
|
|
* Do nothing.
|
|
*/
|
|
class ReformatRaw : public Reformat {
|
|
public:
|
|
ReformatRaw(void) {}
|
|
virtual ~ReformatRaw(void) {}
|
|
|
|
virtual void Examine(ReformatHolder* pHolder) override;
|
|
virtual int Process(const ReformatHolder* pHolder,
|
|
ReformatHolder::ReformatID id, ReformatHolder::ReformatPart part,
|
|
ReformatOutput* pOutput) override;
|
|
};
|
|
|
|
/*
|
|
* Reformat a block of data into a hex dump.
|
|
*/
|
|
class ReformatHexDump : public ReformatText {
|
|
public:
|
|
ReformatHexDump(void) {}
|
|
virtual ~ReformatHexDump(void) {}
|
|
|
|
virtual void Examine(ReformatHolder* pHolder) override;
|
|
virtual int Process(const ReformatHolder* pHolder,
|
|
ReformatHolder::ReformatID id, ReformatHolder::ReformatPart part,
|
|
ReformatOutput* pOutput) override;
|
|
};
|
|
|
|
#endif /*REFORMAT_SIMPLE_H*/
|