00001 #ifndef QPID_ACL_ACLREADER_H
00002 #define QPID_ACL_ACLREADER_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #include <boost/shared_ptr.hpp>
00024 #include <string>
00025 #include <vector>
00026
00027 namespace qpid {
00028 namespace acl {
00029
00030 struct AclData {
00031 bool lc;
00032 AclData() : lc(false) {}
00033 };
00034
00035 class AclReader {
00036 public:
00037 static int read(const std::string& fn, boost::shared_ptr<AclData> d);
00038 private:
00039 static void processLine(char* line, boost::shared_ptr<AclData> d);
00040 static int tokenizeLine(char* line, std::vector<std::string>& toks);
00041 };
00042
00043 }}
00044
00045 #endif // QPID_ACL_ACLREADER_H