2012-05-02 00:40:56 -05:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
< html xmlns = "http://www.w3.org/1999/xhtml" >
< head >
< meta http-equiv = "Content-Type" content = "text/xhtml;charset=UTF-8" / >
< meta http-equiv = "X-UA-Compatible" content = "IE=9" / >
< title > serial: serial::IOException Class Reference< / title >
< link href = "tabs.css" rel = "stylesheet" type = "text/css" / >
< link href = "doxygen.css" rel = "stylesheet" type = "text/css" / >
< link href = "search/search.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "jquery.js" > < / script >
< script type = "text/javascript" src = "search/search.js" > < / script >
< script type = "text/javascript" >
$(document).ready(function() { searchBox.OnSelectItem(0); });
< / script >
< / head >
< body >
< div id = "top" > <!-- do not remove this div! -->
< div id = "titlearea" >
< table cellspacing = "0" cellpadding = "0" >
< tbody >
< tr style = "height: 56px;" >
< td style = "padding-left: 0.5em;" >
< div id = "projectname" > serial
  < span id = "projectnumber" > 1.0< / span >
< / div >
2012-06-09 19:35:49 -05:00
< div id = "projectbrief" > Cross-platform serial port library written in C++< / div >
2012-05-02 00:40:56 -05:00
< / td >
< / tr >
< / tbody >
< / table >
< / div >
<!-- Generated by Doxygen 1.8.0 -->
< script type = "text/javascript" >
var searchBox = new SearchBox("searchBox", "search",false,'Search');
< / script >
< div id = "navrow1" class = "tabs" >
< ul class = "tablist" >
< li > < a href = "index.html" > < span > Main  Page< / span > < / a > < / li >
< li > < a href = "namespaces.html" > < span > Namespaces< / span > < / a > < / li >
< li class = "current" > < a href = "annotated.html" > < span > Data  Structures< / span > < / a > < / li >
< li > < a href = "files.html" > < span > Files< / span > < / a > < / li >
< li >
< div id = "MSearchBox" class = "MSearchBoxInactive" >
< span class = "left" >
< img id = "MSearchSelect" src = "search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
< input type = "text" id = "MSearchField" value = "Search" accesskey = "S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
< / span > < span class = "right" >
< a id = "MSearchClose" href = "javascript:searchBox.CloseResultsWindow()" > < img id = "MSearchCloseImg" border = "0" src = "search/close.png" alt = "" / > < / a >
< / span >
< / div >
< / li >
< / ul >
< / div >
< div id = "navrow2" class = "tabs2" >
< ul class = "tablist" >
< li > < a href = "annotated.html" > < span > Data  Structures< / span > < / a > < / li >
< li > < a href = "classes.html" > < span > Data  Structure  Index< / span > < / a > < / li >
< li > < a href = "functions.html" > < span > Data  Fields< / span > < / a > < / li >
< / ul >
< / div >
<!-- window showing the filter options -->
< div id = "MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
< a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(0)" > < span class = "SelectionMark" >   < / span > All< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(1)" > < span class = "SelectionMark" >   < / span > Data Structures< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(2)" > < span class = "SelectionMark" >   < / span > Namespaces< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(3)" > < span class = "SelectionMark" >   < / span > Files< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(4)" > < span class = "SelectionMark" >   < / span > Functions< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(5)" > < span class = "SelectionMark" >   < / span > Variables< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(6)" > < span class = "SelectionMark" >   < / span > Enumerations< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(7)" > < span class = "SelectionMark" >   < / span > Enumerator< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(8)" > < span class = "SelectionMark" >   < / span > Defines< / a > < / div >
<!-- iframe showing the search results (closed by default) -->
< div id = "MSearchResultsWindow" >
< iframe src = "javascript:void(0)" frameborder = "0"
name="MSearchResults" id="MSearchResults">
< / iframe >
< / div >
< div id = "nav-path" class = "navpath" >
< ul >
< li class = "navelem" > < a class = "el" href = "namespaceserial.html" > serial< / a > < / li >
< li class = "navelem" > < a class = "el" href = "classserial_1_1_i_o_exception.html" > IOException< / a > < / li >
< / ul >
< / div >
< / div >
< div class = "header" >
< div class = "summary" >
< a href = "#pub-methods" > Public Member Functions< / a > < / div >
< div class = "headertitle" >
< div class = "title" > serial::IOException Class Reference< / div > < / div >
< / div > <!-- header -->
< div class = "contents" >
< p > < code > #include < < a class = "el" href = "serial_8h_source.html" > serial.h< / a > > < / code > < / p >
< table class = "memberdecls" >
< tr > < td colspan = "2" > < h2 > < a name = "pub-methods" > < / a >
Public Member Functions< / h2 > < / td > < / tr >
< tr class = "memitem:acb2f2cf7a5cc8090945f6cbfcef3ef1e" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classserial_1_1_i_o_exception.html#acb2f2cf7a5cc8090945f6cbfcef3ef1e" > IOException< / a > (std::string file, int line, int errnum)< / td > < / tr >
< tr class = "memitem:acc1d2c650832cc8127f2cd777072b2cd" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classserial_1_1_i_o_exception.html#acc1d2c650832cc8127f2cd777072b2cd" > IOException< / a > (std::string file, int line, const char *description)< / td > < / tr >
< tr class = "memitem:a026ae2e6abc57c6069915f0f8c701390" > < td class = "memItemLeft" align = "right" valign = "top" > virtual  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classserial_1_1_i_o_exception.html#a026ae2e6abc57c6069915f0f8c701390" > ~IOException< / a > () throw ()< / td > < / tr >
2012-06-09 19:35:49 -05:00
< tr class = "memitem:af65196a71b800d11b5e5c367caf5b354" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classserial_1_1_i_o_exception.html#af65196a71b800d11b5e5c367caf5b354" > IOException< / a > (const < a class = "el" href = "classserial_1_1_i_o_exception.html" > IOException< / a > & other)< / td > < / tr >
2012-05-02 00:40:56 -05:00
< tr class = "memitem:a91d5ee5241dd49fb39e8e762564b6cc5" > < td class = "memItemLeft" align = "right" valign = "top" > int  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classserial_1_1_i_o_exception.html#a91d5ee5241dd49fb39e8e762564b6cc5" > getErrorNumber< / a > ()< / td > < / tr >
< tr class = "memitem:a5151f78cf0309db2c79f3dc4c779c774" > < td class = "memItemLeft" align = "right" valign = "top" > virtual const char *  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classserial_1_1_i_o_exception.html#a5151f78cf0309db2c79f3dc4c779c774" > what< / a > () const throw ()< / td > < / tr >
< / table >
< hr / > < h2 > Constructor & Destructor Documentation< / h2 >
< a class = "anchor" id = "acb2f2cf7a5cc8090945f6cbfcef3ef1e" > < / a >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > < a class = "el" href = "classserial_1_1_i_o_exception.html#acb2f2cf7a5cc8090945f6cbfcef3ef1e" > serial::IOException::IOException< / a > < / td >
< td > (< / td >
< td class = "paramtype" > std::string  < / td >
< td class = "paramname" > < em > file< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > int  < / td >
< td class = "paramname" > < em > line< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > int  < / td >
< td class = "paramname" > < em > errnum< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < code > [inline, explicit]< / code > < / td >
< / tr >
< / table >
< / div >
< div class = "memdoc" >
< div class = "fragment" > < pre class = "fragment" > : file_(file), line_(line), e_what_ (strerror (errnum)), errno_(errnum) {}
< / pre > < / div >
< / div >
< / div >
< a class = "anchor" id = "acc1d2c650832cc8127f2cd777072b2cd" > < / a >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > < a class = "el" href = "classserial_1_1_i_o_exception.html#acb2f2cf7a5cc8090945f6cbfcef3ef1e" > serial::IOException::IOException< / a > < / td >
< td > (< / td >
< td class = "paramtype" > std::string  < / td >
< td class = "paramname" > < em > file< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > int  < / td >
< td class = "paramname" > < em > line< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > const char *  < / td >
< td class = "paramname" > < em > description< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < code > [inline, explicit]< / code > < / td >
< / tr >
< / table >
< / div >
< div class = "memdoc" >
< div class = "fragment" > < pre class = "fragment" > : file_(file), line_(line), e_what_ (description), errno_(0) {}
< / pre > < / div >
< / div >
< / div >
< a class = "anchor" id = "a026ae2e6abc57c6069915f0f8c701390" > < / a >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > virtual < a class = "el" href = "classserial_1_1_i_o_exception.html#a026ae2e6abc57c6069915f0f8c701390" > serial::IOException::~IOException< / a > < / td >
< td > (< / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > throw ()< code > [inline, virtual]< / code > < / td >
< / tr >
< / table >
< / div >
< div class = "memdoc" >
< div class = "fragment" > < pre class = "fragment" > {}
< / pre > < / div >
< / div >
< / div >
2012-06-09 19:35:49 -05:00
< a class = "anchor" id = "af65196a71b800d11b5e5c367caf5b354" > < / a >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > < a class = "el" href = "classserial_1_1_i_o_exception.html#acb2f2cf7a5cc8090945f6cbfcef3ef1e" > serial::IOException::IOException< / a > < / td >
< td > (< / td >
< td class = "paramtype" > const < a class = "el" href = "classserial_1_1_i_o_exception.html" > IOException< / a > &   < / td >
< td class = "paramname" > < em > other< / em > < / td > < td > )< / td >
< td > < code > [inline]< / code > < / td >
< / tr >
< / table >
< / div >
< div class = "memdoc" >
< div class = "fragment" > < pre class = "fragment" > {
e_what_ = other.e_what_;
}
< / pre > < / div >
< / div >
< / div >
2012-05-02 00:40:56 -05:00
< hr / > < h2 > Member Function Documentation< / h2 >
< a class = "anchor" id = "a91d5ee5241dd49fb39e8e762564b6cc5" > < / a >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > int < a class = "el" href = "classserial_1_1_i_o_exception.html#a91d5ee5241dd49fb39e8e762564b6cc5" > serial::IOException::getErrorNumber< / a > < / td >
< td > (< / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > < code > [inline]< / code > < / td >
< / tr >
< / table >
< / div >
< div class = "memdoc" >
< div class = "fragment" > < pre class = "fragment" > { < span class = "keywordflow" > return< / span > errno_; }
< / pre > < / div >
< / div >
< / div >
< a class = "anchor" id = "a5151f78cf0309db2c79f3dc4c779c774" > < / a >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > virtual const char* < a class = "el" href = "classserial_1_1_i_o_exception.html#a5151f78cf0309db2c79f3dc4c779c774" > serial::IOException::what< / a > < / td >
< td > (< / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > const throw ()< code > [inline, virtual]< / code > < / td >
< / tr >
< / table >
< / div >
< div class = "memdoc" >
< div class = "fragment" > < pre class = "fragment" > {
std::stringstream ss;
< span class = "keywordflow" > if< / span > (errno_ == 0)
ss < < < span class = "stringliteral" > " IO Exception: " < / span > < < e_what_;
< span class = "keywordflow" > else< / span >
ss < < < span class = "stringliteral" > " IO Exception (" < / span > < < errno_ < < < span class = "stringliteral" > " ): " < / span > < < e_what_;
ss < < < span class = "stringliteral" > " , file " < / span > < < file_ < < < span class = "stringliteral" > " , line " < / span > < < line_ < < < span class = "stringliteral" > " ." < / span > ;
< span class = "keywordflow" > return< / span > ss.str ().c_str ();
}
< / pre > < / div >
< / div >
< / div >
< hr / > The documentation for this class was generated from the following file:< ul >
< li > include/serial/< a class = "el" href = "serial_8h_source.html" > serial.h< / a > < / li >
< / ul >
< / div > <!-- contents -->
< hr class = "footer" / > < address class = "footer" > < small >
2012-06-09 20:05:44 -05:00
Generated on Sat Jun 9 2012 20:04:37 for serial by   < a href = "http://www.doxygen.org/index.html" >
2012-05-02 00:40:56 -05:00
< img class = "footer" src = "doxygen.png" alt = "doxygen" / >
< / a > 1.8.0
< / small > < / address >
< / body >
< / html >