|
| 1 | +/** |
| 2 | + * The ARTist Project (https://artist.cispa.saarland) |
| 3 | + * |
| 4 | + * Copyright (C) 2018 CISPA (https://cispa.saarland), Saarland University |
| 5 | + * |
| 6 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | + * you may not use this file except in compliance with the License. |
| 8 | + * You may obtain a copy of the License at |
| 9 | + * |
| 10 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | + * |
| 12 | + * Unless required by applicable law or agreed to in writing, software |
| 13 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | + * See the License for the specific language governing permissions and |
| 16 | + * limitations under the License. |
| 17 | + * |
| 18 | + * @author "Parthipan Ramesh <[email protected]>" |
| 19 | + * |
| 20 | + */ |
| 21 | + |
| 22 | +#ifndef ART_MODULES_CODELIB_H_ |
| 23 | +#define ART_MODULES_CODELIB_H_ |
| 24 | + |
| 25 | +#include <string> |
| 26 | +#include <unordered_set> |
| 27 | +#include <artist/env/codelib.h> |
| 28 | + |
| 29 | +using std::string; |
| 30 | +using std::unordered_set; |
| 31 | + |
| 32 | +using art::CodeLib; |
| 33 | + |
| 34 | +class ModuleCodeLib : public CodeLib { |
| 35 | +public: |
| 36 | + ModuleCodeLib() = default; |
| 37 | + |
| 38 | + ModuleCodeLib(const ModuleCodeLib &other) = default; |
| 39 | + |
| 40 | + ModuleCodeLib(ModuleCodeLib &&other) = default; |
| 41 | + |
| 42 | + ~ModuleCodeLib() override = default; |
| 43 | + |
| 44 | + ModuleCodeLib &operator=(const ModuleCodeLib &) = default; |
| 45 | + |
| 46 | + ModuleCodeLib &operator=(ModuleCodeLib &&) = default; |
| 47 | + |
| 48 | + unordered_set<string> &getMethods() const override; |
| 49 | + |
| 50 | + string &getInstanceField() const override; |
| 51 | + |
| 52 | + string &getCodeClass() const override; |
| 53 | +}; // class ModuleCodeLib |
| 54 | + |
| 55 | +#endif // ART_MODULES_CODELIB_H_ |
0 commit comments