/** @file rawstringwritestream.h
 *  EA::Json::IWriteStream implementation for EA::RawString
 *	@author Chris Burns (cburns@ea.com)
 *
 *	UX
 *	(c) 2012 Electronic Arts Inc. 
 */

#ifndef EABASETYPESJSON_RAWSTRINGWRITESTREAM_H_
#define EABASETYPESJSON_RAWSTRINGWRITESTREAM_H_

#include "EAJson/json.h"

namespace EA
{
	class RawString;

	class RawStringWriteStream : public EA::Json::IWriteStream
	{
	public:

		RawStringWriteStream(EA::RawString* dst);
		
		virtual bool Write(const void* pData, EA::Json::size_type nSize);

	private:

		EA::RawString* mDst;
	};
}

#endif /* EABASETYPESJSON_RAWSTRINGWRITESTREAM_H_ */
