compilable and usable
This commit is contained in:
@@ -8,9 +8,11 @@
|
|||||||
develdir = ${pkgdatadir}/doc
|
develdir = ${pkgdatadir}/doc
|
||||||
devel_DATA = html/index.html
|
devel_DATA = html/index.html
|
||||||
|
|
||||||
ALL_SRC = ${top_srcdir}/src/*.[ch]xx ${top_srcdir}/test/*.[ch]xx
|
ALL_SRC = ${top_srcdir}/src/*.[ch]xx
|
||||||
|
#${top_srcdir}/test/*.[ch]xx
|
||||||
|
|
||||||
DIRS = html latex
|
DIRS = html
|
||||||
|
# latex
|
||||||
|
|
||||||
all: ${DIRS}
|
all: ${DIRS}
|
||||||
|
|
||||||
@@ -25,8 +27,8 @@ ${devel_DATA}: ${ALL_SRC} doxyfile ${deps}
|
|||||||
if PEDANTIC
|
if PEDANTIC
|
||||||
test \! -s doxygen.errors
|
test \! -s doxygen.errors
|
||||||
endif
|
endif
|
||||||
cd latex && make
|
# cd latex && make
|
||||||
mv latex/refman.pdf @PACKAGENAME@-@MAJOR@.@MINOR@.@LEAST@.pdf
|
# mv latex/refman.pdf @PACKAGENAME@-@MAJOR@.@MINOR@.@LEAST@.pdf
|
||||||
|
|
||||||
CLEANFILES = doxygen.errors @PACKAGENAME@-@MAJOR@.@MINOR@.@LEAST@.pdf
|
CLEANFILES = doxygen.errors @PACKAGENAME@-@MAJOR@.@MINOR@.@LEAST@.pdf
|
||||||
DISTCLEANFILES = @PACKAGENAME@.doxytag
|
DISTCLEANFILES = @PACKAGENAME@.doxytag
|
||||||
|
@@ -5,6 +5,8 @@
|
|||||||
## 1 2 3 4 5 6 7 8
|
## 1 2 3 4 5 6 7 8
|
||||||
## 45678901234567890123456789012345678901234567890123456789012345678901234567890
|
## 45678901234567890123456789012345678901234567890123456789012345678901234567890
|
||||||
|
|
||||||
|
include_HEADERS=pcsc.hxx
|
||||||
|
|
||||||
if BUILD_WIN
|
if BUILD_WIN
|
||||||
else
|
else
|
||||||
endif
|
endif
|
||||||
|
@@ -43,7 +43,8 @@ namespace pcsc {
|
|||||||
std::string hex(const std::string& data) {
|
std::string hex(const std::string& data) {
|
||||||
std::stringstream res;
|
std::stringstream res;
|
||||||
for (std::string::const_iterator it(data.begin()); it!=data.end(); ++it)
|
for (std::string::const_iterator it(data.begin()); it!=data.end(); ++it)
|
||||||
res<<std::hex<<std::setfill('0')<<std::setw(2)<<(int)*it;
|
res<<"(0x"<<std::hex<<std::setfill('0')<<std::setw(2)
|
||||||
|
<<(unsigned int)(unsigned char)*it<<')';
|
||||||
return res.str();
|
return res.str();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -59,14 +60,14 @@ namespace pcsc {
|
|||||||
std::string _what;
|
std::string _what;
|
||||||
};
|
};
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
class not_implemented: exception {
|
class not_implemented: public exception {
|
||||||
public:
|
public:
|
||||||
not_implemented(const std::string& reason) throw():
|
not_implemented(const std::string& reason) throw():
|
||||||
exception("feature is not implemented:\n"+reason) {
|
exception("feature is not implemented:\n"+reason) {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
class access_error: exception {
|
class access_error: public exception {
|
||||||
public:
|
public:
|
||||||
access_error(const std::string& reason) throw():
|
access_error(const std::string& reason) throw():
|
||||||
exception("smardcard access error:\n"+reason) {
|
exception("smardcard access error:\n"+reason) {
|
||||||
|
Reference in New Issue
Block a user