classdef rtioStreamWriter < handle
    % RTIOSTREAMWRITER Class that represents rtiostream_serial 
    % include writer
    
    %   Copyright 2020 The MathWorks, Inc.
    
    properties
        Buffer = []
    end
    
    methods
        function obj = rtioStreamWriter()
            % Call base class constructor
            % Initailize properties
            obj.Buffer = [ ];
        end
        
        function writeLine(obj, str)
            obj.Buffer{end+1} = [str newline];
        end
        
        function bufferContent = returnContent(obj)
            bufferContent = sprintf( '%s', obj.Buffer{:} );
        end       
        
    end
end