qasm/ciderpress/reformat/Simple.h
2019-11-13 15:45:39 -08:00

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*/