00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifdef HAVE_CONFIG_H
00018 #include "config.h"
00019 #endif
00020
00021 #ifndef ALLOWED_SETS_H
00022 #define ALLOWED_SETS_H
00023
00024 #include <vector>
00025 #include <string>
00026
00027 #include <dalt_client/entity.h>
00028
00029 namespace DALT_Client {
00030
00036 class AllowedSets
00037 {
00038 public:
00041 struct Pair {
00042 vector<string> targets;
00043 vector<string> sources;
00044 };
00046 vector<Pair> sets;
00047
00049 AllowedSets();
00051 ~AllowedSets();
00052
00054 void addPair(Pair& p);
00055
00060 bool canPerform(Entity* originator, Entity* target);
00061 };
00062
00063 }
00064
00065 #endif