std::string file_path;
std::string content_proxy_server;
std::string content_tmp_file;
+ bool apdu_log;
CCL_bibset bibset;
std::string element_transform;
std::string element_raw;
}
}
-yf::Zoom::Impl::Impl() : element_transform("pz2") , element_raw("raw")
+yf::Zoom::Impl::Impl() :
+ apdu_log(false), element_transform("pz2") , element_raw("raw")
{
bibset = ccl_qual_mk();
}
attr->name));
}
}
+ else if (!strcmp((const char *) ptr->name, "log"))
+ {
+ const struct _xmlAttr *attr;
+ for (attr = ptr->properties; attr; attr = attr->next)
+ {
+ if (!strcmp((const char *) attr->name, "apdu"))
+ apdu_log = mp::xml::get_bool(attr->children, false);
+ else
+ throw mp::filter::FilterException(
+ "Bad attribute " + std::string((const char *)
+ attr->name));
+ }
+ }
else
{
throw mp::filter::FilterException
b->set_option("rpnCharset", sptr->query_encoding);
b->set_option("timeout", "40");
-
+
+ if (m_p->apdu_log)
+ b->set_option("apdulog", "1");
std::string authentication = sptr->authentication;
std::string proxy = sptr->cfProxy;
element mp:contentProxy {
attribute server { xsd:string }?,
attribute tmp_file { xsd:string }?
+ }?,
+ element mp:log {
+ attribute apdu { xsd:boolean }?
}?
<xs:element minOccurs="0" maxOccurs="unbounded" ref="mp:fieldmap"/>
<xs:element minOccurs="0" ref="mp:cclmap"/>
<xs:element minOccurs="0" ref="mp:contentProxy"/>
+ <xs:element minOccurs="0" ref="mp:log"/>
</xs:sequence>
</xs:group>
<xs:element name="torus">
<xs:attribute name="tmp_file" type="xs:string"/>
</xs:complexType>
</xs:element>
+ <xs:element name="log">
+ <xs:complexType>
+ <xs:attribute name="apdu" type="xs:boolean"/>
+ </xs:complexType>
+ </xs:element>
<xs:attributeGroup name="filter_zoom">
<xs:attribute name="type" use="required">
<xs:simpleType>