Renamed default encoder.

This commit is contained in:
Vincent Richard 2013-06-24 18:07:43 +02:00
parent 895b07cae9
commit 5242a01c77
6 changed files with 19 additions and 19 deletions

View File

@ -152,7 +152,7 @@ libvmime_sources = [
'utility/encoder/eightBitEncoder.cpp', 'utility/encoder/eightBitEncoder.hpp', 'utility/encoder/eightBitEncoder.cpp', 'utility/encoder/eightBitEncoder.hpp',
'utility/encoder/b64Encoder.cpp', 'utility/encoder/b64Encoder.hpp', 'utility/encoder/b64Encoder.cpp', 'utility/encoder/b64Encoder.hpp',
'utility/encoder/binaryEncoder.cpp', 'utility/encoder/binaryEncoder.hpp', 'utility/encoder/binaryEncoder.cpp', 'utility/encoder/binaryEncoder.hpp',
'utility/encoder/defaultEncoder.cpp', 'utility/encoder/defaultEncoder.hpp', 'utility/encoder/noopEncoder.cpp', 'utility/encoder/noopEncoder.hpp',
'utility/encoder/encoderFactory.cpp', 'utility/encoder/encoderFactory.hpp', 'utility/encoder/encoderFactory.cpp', 'utility/encoder/encoderFactory.hpp',
'utility/encoder/qpEncoder.cpp', 'utility/encoder/qpEncoder.hpp', 'utility/encoder/qpEncoder.cpp', 'utility/encoder/qpEncoder.hpp',
'utility/encoder/uuEncoder.cpp', 'utility/encoder/uuEncoder.hpp', 'utility/encoder/uuEncoder.cpp', 'utility/encoder/uuEncoder.hpp',

View File

@ -21,7 +21,7 @@
// the GNU General Public License cover the whole combination. // the GNU General Public License cover the whole combination.
// //
#include "vmime/utility/encoder/defaultEncoder.hpp" #include "vmime/utility/encoder/noopEncoder.hpp"
#include "vmime/utility/streamUtils.hpp" #include "vmime/utility/streamUtils.hpp"
@ -31,12 +31,12 @@ namespace utility {
namespace encoder { namespace encoder {
defaultEncoder::defaultEncoder() noopEncoder::noopEncoder()
{ {
} }
utility::stream::size_type defaultEncoder::encode(utility::inputStream& in, utility::stream::size_type noopEncoder::encode(utility::inputStream& in,
utility::outputStream& out, utility::progressListener* progress) utility::outputStream& out, utility::progressListener* progress)
{ {
in.reset(); // may not work... in.reset(); // may not work...
@ -53,7 +53,7 @@ utility::stream::size_type defaultEncoder::encode(utility::inputStream& in,
} }
utility::stream::size_type defaultEncoder::decode(utility::inputStream& in, utility::stream::size_type noopEncoder::decode(utility::inputStream& in,
utility::outputStream& out, utility::progressListener* progress) utility::outputStream& out, utility::progressListener* progress)
{ {
in.reset(); // may not work... in.reset(); // may not work...
@ -70,13 +70,13 @@ utility::stream::size_type defaultEncoder::decode(utility::inputStream& in,
} }
utility::stream::size_type defaultEncoder::getEncodedSize(const utility::stream::size_type n) const utility::stream::size_type noopEncoder::getEncodedSize(const utility::stream::size_type n) const
{ {
return n; return n;
} }
utility::stream::size_type defaultEncoder::getDecodedSize(const utility::stream::size_type n) const utility::stream::size_type noopEncoder::getDecodedSize(const utility::stream::size_type n) const
{ {
return n; return n;
} }

View File

@ -25,7 +25,7 @@
#define VMIME_UTILITY_ENCODER_BINARYENCODER_HPP_INCLUDED #define VMIME_UTILITY_ENCODER_BINARYENCODER_HPP_INCLUDED
#include "vmime/utility/encoder/defaultEncoder.hpp" #include "vmime/utility/encoder/noopEncoder.hpp"
namespace vmime { namespace vmime {
@ -36,7 +36,7 @@ namespace encoder {
/** Binary encoder. /** Binary encoder.
*/ */
class VMIME_EXPORT binaryEncoder : public defaultEncoder class VMIME_EXPORT binaryEncoder : public noopEncoder
{ {
public: public:

View File

@ -25,7 +25,7 @@
#define VMIME_UTILITY_ENCODER_EIGHTBITENCODER_HPP_INCLUDED #define VMIME_UTILITY_ENCODER_EIGHTBITENCODER_HPP_INCLUDED
#include "vmime/utility/encoder/defaultEncoder.hpp" #include "vmime/utility/encoder/noopEncoder.hpp"
namespace vmime { namespace vmime {
@ -36,7 +36,7 @@ namespace encoder {
/** 8-bit encoder. /** 8-bit encoder.
*/ */
class VMIME_EXPORT eightBitEncoder : public defaultEncoder class VMIME_EXPORT eightBitEncoder : public noopEncoder
{ {
public: public:

View File

@ -21,8 +21,8 @@
// the GNU General Public License cover the whole combination. // the GNU General Public License cover the whole combination.
// //
#ifndef VMIME_UTILITY_ENCODER_DEFAULTENCODER_HPP_INCLUDED #ifndef VMIME_UTILITY_ENCODER_NOOPENCODER_HPP_INCLUDED
#define VMIME_UTILITY_ENCODER_DEFAULTENCODER_HPP_INCLUDED #define VMIME_UTILITY_ENCODER_NOOPENCODER_HPP_INCLUDED
#include "vmime/utility/encoder/encoder.hpp" #include "vmime/utility/encoder/encoder.hpp"
@ -33,14 +33,14 @@ namespace utility {
namespace encoder { namespace encoder {
/** Default encoder (simple copy, no encoding/decoding is performed). /** Default, no-op encoder (simple copy, no encoding/decoding is performed).
*/ */
class VMIME_EXPORT defaultEncoder : public encoder class VMIME_EXPORT noopEncoder : public encoder
{ {
public: public:
defaultEncoder(); noopEncoder();
utility::stream::size_type encode(utility::inputStream& in, utility::outputStream& out, utility::progressListener* progress = NULL); utility::stream::size_type encode(utility::inputStream& in, utility::outputStream& out, utility::progressListener* progress = NULL);
utility::stream::size_type decode(utility::inputStream& in, utility::outputStream& out, utility::progressListener* progress = NULL); utility::stream::size_type decode(utility::inputStream& in, utility::outputStream& out, utility::progressListener* progress = NULL);
@ -55,4 +55,4 @@ public:
} // vmime } // vmime
#endif // VMIME_UTILITY_ENCODER_DEFAULTENCODER_HPP_INCLUDED #endif // VMIME_UTILITY_ENCODER_NOOPENCODER_HPP_INCLUDED

View File

@ -25,7 +25,7 @@
#define VMIME_UTILITY_ENCODER_SEVENBITENCODER_HPP_INCLUDED #define VMIME_UTILITY_ENCODER_SEVENBITENCODER_HPP_INCLUDED
#include "vmime/utility/encoder/defaultEncoder.hpp" #include "vmime/utility/encoder/noopEncoder.hpp"
namespace vmime { namespace vmime {
@ -36,7 +36,7 @@ namespace encoder {
/** 7-bit encoder. /** 7-bit encoder.
*/ */
class VMIME_EXPORT sevenBitEncoder : public defaultEncoder class VMIME_EXPORT sevenBitEncoder : public noopEncoder
{ {
public: public: