use super::CommonState;
use crate::reader::error::{Error, ErrorKind, Result};
use crate::reader::FbxEvent;
use std::io::Read;
#[derive(Debug, Clone)]
pub struct AsciiParser {
buffer: String,
}
impl AsciiParser {
pub(crate) fn new(buffer: String) -> Self {
AsciiParser { buffer }
}
pub(crate) fn next<R: Read>(
&mut self,
_reader: &mut R,
common: &mut CommonState,
) -> Result<FbxEvent> {
Err(Error::new(
common.pos,
ErrorKind::Unimplemented(
"Parser for ASCII FBX format is not implemented yet".to_string(),
),
))
}
}