1////////////////////////////////////////////////////////////////////////////////
2// //
3// This software is supplied under the terms of a license agreement or //
4// nondisclosure agreement with Mitov Software and may not be copied //
5// or disclosed except in accordance with the terms of that agreement. //
6// Copyright(c) 2002-2016 Mitov Software. All Rights Reserved. //
7// //
8////////////////////////////////////////////////////////////////////////////////
9
10#ifndef _MITOV_STRING_PRINT_h
11#define _MITOV_STRING_PRINT_h
12
13#include <Mitov.h>
14
15namespace Mitov
16{
17 class StringPrint : public Print
18 {
19 typedef Print inherited;
20
21 public:
22 String Value;
23
24 public:
25 virtual size_t write( uint8_t AChar )
26 {
27 Value += (char)AChar;
28 return 1;
29 }
30 };
31//---------------------------------------------------------------------------
32 class BufferPrint : public Print
33 {
34 typedef Print inherited;
35
36 public:
37 Mitov::SimpleList<uint8_t> Value;
38
39 public:
40 virtual size_t write( uint8_t AChar )
41 {
42 Value.push_back( AChar );
43 return 1;
44 }
45 };
46}
47
48#endif