7#ifndef LOGICALACCESS_CARDSFORMATCOMPOSITE_HPP
8#define LOGICALACCESS_CARDSFORMATCOMPOSITE_HPP
38 using XmlSerializable::serialize;
39 using XmlSerializable::unSerialize;
57 std::shared_ptr<Format> createFormatFromXml(
const std::string &xmlstring,
58 const std::string &rootNode)
const;
65 void addFormatForCard(
const std::string &type,
66 std::shared_ptr<FormatInfos> formatInfos);
76 std::shared_ptr<FormatInfos> retrieveFormatForCard(
const std::string &type);
82 void removeFormatForCard(
const std::string &type);
94 std::shared_ptr<Format> readFormat();
101 std::shared_ptr<Format> readFormat(std::shared_ptr<Chip> chip);
107 void serialize(boost::property_tree::ptree &parentNode)
override;
113 void unSerialize(boost::property_tree::ptree &node)
override;
119 std::string getDefaultXmlNodeName()
const override;
131 void setReaderUnit(std::weak_ptr<ReaderUnit> unit);
A Xml Serializable base class. Add Xml serialization to a class.
Definition: xmlserializable.hpp:54
std::vector< std::string > CardTypeList
A card type list.
Definition: cardsformatcomposite.hpp:30
std::pair< std::string, std::shared_ptr< FormatInfos > > FormatInfosPair
A format infos pair.
Definition: cardsformatcomposite.hpp:25
std::map< std::string, std::shared_ptr< FormatInfos > > FormatInfosList
A format infos map.
Definition: cardsformatcomposite.hpp:20
LLA_READERS_PCSC_API void getReaderUnit(const std::string &readerName, std::shared_ptr< logicalaccess::ReaderUnit > &u)
Definition: libraryentry.cpp:25