Input as seen from the application processor program.
More...
#include <input.hpp>
Input as seen from the application processor program.
_Wolframe::langbind::Input::Input |
( |
| ) |
|
|
inline |
_Wolframe::langbind::Input::Input |
( |
const Input & |
o | ) |
|
Copy constructor.
- Parameters
-
_Wolframe::langbind::Input::Input |
( |
const std::string & |
docformat_ | ) |
|
Constructor by input filter.
- Parameters
-
[in] | docformat_ | document format |
_Wolframe::langbind::Input::Input |
( |
const std::string & |
docformat_, |
|
|
const std::string & |
content_ |
|
) |
| |
Constructor by content.
- Parameters
-
[in] | docformat_ | document format |
[in] | content_ | content string |
_Wolframe::langbind::Input::~Input |
( |
| ) |
|
|
inline |
const std::string& _Wolframe::langbind::Input::docformat |
( |
| ) |
const |
|
inline |
Get the document format as recognized by the document type detection as string {"xml","json",...}.
- Returns
- the document format as string
const char* _Wolframe::langbind::Input::documentptr |
( |
| ) |
const |
|
inline |
Get content source string if input is not from network.
- Returns
- the content string pointer or NULL, if not defined
std::size_t _Wolframe::langbind::Input::documentsize |
( |
| ) |
const |
|
inline |
Get size of the content source string if input is not from network.
- Returns
- the content string size or 0, if not defined
Get the input filter attached to input and check for duplicate access.
- Returns
- the input filter reference
bool _Wolframe::langbind::Input::gotEoD |
( |
| ) |
const |
|
inline |
Find out if the input has reached end of data.
const InputFilterR& _Wolframe::langbind::Input::inputfilter |
( |
| ) |
const |
|
inline |
Get the input filter attached to input.
- Returns
- the input filter reference
Get the input filter attached to input.
- Returns
- the input filter reference
bool _Wolframe::langbind::Input::isDocument |
( |
| ) |
const |
|
inline |
Eval if this represents a document.
- Returns
- true, if yes
void _Wolframe::langbind::Input::putInput |
( |
const void * |
data, |
|
|
std::size_t |
datasize, |
|
|
bool |
eod |
|
) |
| |
Put input data to filter or buffer it.
- Parameters
-
[in] | data | pointer to input data |
[in] | datasize | size of input data in bytes |
[in] | eod | end of data |
void _Wolframe::langbind::Input::setInputFilter |
( |
const InputFilterR & |
filter | ) |
|
Defined the input filter and attach unconsumed input.
- Parameters
-
boost::shared_ptr<char> _Wolframe::langbind::Input::m_content |
|
private |
content source string is input is not from network
std::size_t _Wolframe::langbind::Input::m_contentsize |
|
private |
std::string _Wolframe::langbind::Input::m_docformat |
|
private |
document format as recognized by the document type detection as string {"xml","json",...}
bool _Wolframe::langbind::Input::m_gotEoD |
|
private |
input is defined by the associated input filter
std::string _Wolframe::langbind::Input::m_unconsumedInput |
|
private |
bool _Wolframe::langbind::Input::m_used |
|
private |
only one iterator can be created from input. This is the guard for checking this.
The documentation for this class was generated from the following file: