diff options
Diffstat (limited to 'src/core/model/RBAAllocatableMaker.hpp')
-rw-r--r-- | src/core/model/RBAAllocatableMaker.hpp | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/src/core/model/RBAAllocatableMaker.hpp b/src/core/model/RBAAllocatableMaker.hpp new file mode 100644 index 0000000..f4393cb --- /dev/null +++ b/src/core/model/RBAAllocatableMaker.hpp @@ -0,0 +1,54 @@ +/** + * Copyright (c) 2019 DENSO CORPORATION. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/// @file RBAAllocatableMaker.cpp +/// @brief Allocatable object generator abstract class header + +#ifndef RBAALLOCATABLEMAKER_HPP +#define RBAALLOCATABLEMAKER_HPP + +#include "RBAAbstractAllocatableMaker.hpp" + +namespace rba +{ + +/// @brief Allocatable object generator abstract class +class DLL_EXPORT RBAAllocatableMaker + : public RBAAbstractAllocatableMaker +{ +public: + explicit RBAAllocatableMaker(const std::string& label=""); + RBAAllocatableMaker(const RBAAllocatableMaker&)=delete; + RBAAllocatableMaker(const RBAAllocatableMaker&&)=delete; + RBAAllocatableMaker& operator=(const RBAAllocatableMaker&)=delete; + RBAAllocatableMaker& operator=(const RBAAllocatableMaker&&)=delete; + virtual ~RBAAllocatableMaker()=default; + +protected: + /// @brief Set model element attributes for each derived class + /// @param[in] jsonElem JSON element of ModelElement + /// @param[in] model The model to store generated RBARuleObjectMaker + /// @param[in,out] owner Parent object (Not in use) + RBAModelElement* setProperty(RBAModelElement* element, + const RBAJsonElement* jsonElem, + RBAModelImpl* model, + RBAModelElement* owner=nullptr) override; + +}; + +} + +#endif |