Add stdout-viewer

This commit is contained in:
Matthias Beyer 2016-02-24 00:51:35 +01:00
parent 43d27ab689
commit d02ac8bd88
3 changed files with 26 additions and 0 deletions

View File

@ -24,6 +24,7 @@ mod viewer;
use ui::build_ui;
use viewer::Viewer;
use viewer::ViewInformation;
use viewer::stdout::StdoutViewer;
fn main() {
let name = "imag-view";

View File

@ -1,3 +1,5 @@
pub mod stdout;
use libimagstore::store::Entry;
#[derive(Debug)]

View File

@ -0,0 +1,23 @@
use std::io::{Stdout, stdout};
use viewer::{ViewInformation, Viewer};
pub struct StdoutViewer {
out: Stdout,
}
impl StdoutViewer {
pub fn new() -> StdoutViewer {
StdoutViewer { out: stdout() }
}
}
impl Viewer for StdoutViewer {
fn view(&self, vi: ViewInformation) {
unimplemented!()
}
}