source: icGREP/icgrep-devel/icgrep/kernels/stdout_kernel.h @ 5280

Last change on this file since 5280 was 5280, checked in by cameron, 2 years ago

FileSink? kernel

File size: 829 bytes
Line 
1/*
2 *  Copyright (c) 2016 International Characters.
3 *  This software is licensed to the public under the Open Software License 3.0.
4 */
5#ifndef STDOUT_KERNEL_H
6#define STDOUT_KERNEL_H
7
8#include "kernel.h"
9
10namespace IDISA { class IDISA_Builder; }
11
12namespace kernel {
13
14class StdOutKernel : public KernelBuilder {
15public:
16
17    StdOutKernel(IDISA::IDISA_Builder * iBuilder, unsigned codeUnitWidth);
18   
19private:
20 
21    void generateDoSegmentMethod() const override;
22
23private:
24    const unsigned mCodeUnitWidth;
25   
26};
27
28
29class FileSink : public KernelBuilder {
30public:
31   
32    FileSink(IDISA::IDISA_Builder * iBuilder, unsigned codeUnitWidth);
33   
34private:
35   
36    void generateInitMethod() const override;
37    void generateDoSegmentMethod() const override;
38   
39private:
40    const unsigned mCodeUnitWidth;
41   
42};
43}
44
45
46
47#endif
Note: See TracBrowser for help on using the repository browser.