mirror of
				https://github.com/bblanchon/ArduinoJson.git
				synced 2025-11-04 08:31:36 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			31 lines
		
	
	
		
			606 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			606 B
		
	
	
	
		
			C++
		
	
	
	
	
	
/*
 | 
						|
 * Arduino JSON library
 | 
						|
 * Benoit Blanchon 2014 - MIT License
 | 
						|
 */
 | 
						|
 | 
						|
#pragma once
 | 
						|
 | 
						|
#include "JsonValue.h"
 | 
						|
#include "Print.h"
 | 
						|
#include "Printable.h"
 | 
						|
 | 
						|
namespace ArduinoJson
 | 
						|
{
 | 
						|
    namespace Generator
 | 
						|
    {
 | 
						|
        class JsonObjectBase : public Printable
 | 
						|
        {
 | 
						|
        public:
 | 
						|
 | 
						|
            size_t printTo(char* buffer, size_t bufferSize)
 | 
						|
            {
 | 
						|
                using namespace Internals;
 | 
						|
 | 
						|
                StringBuilder sb(buffer, bufferSize);
 | 
						|
                return printTo(sb);
 | 
						|
            }
 | 
						|
 | 
						|
            virtual size_t printTo(Print& p) const = 0;
 | 
						|
        };
 | 
						|
    }
 | 
						|
} |