/* ### * IP: GHIDRA * * 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 typegrp_ghidra.hh /// \brief Interface for requesting data-type information from a Ghidra client #ifndef __TYPEGRP_GHIDRA__ #define __TYPEGRP_GHIDRA__ #include "type.hh" #include "ghidra_arch.hh" /// \brief An implementation of the TypeFactory interface, query a Ghidra client for data-type information /// /// Requests for a specific data-type name and id are marshaled to the Ghidra client, /// which sends back a description of the data-type. The description is parsed and /// converted into a Datatype object and cached in this object. class TypeFactoryGhidra : public TypeFactory { protected: virtual Datatype *findById(const string &n,uint8 id,int4 sz); public: TypeFactoryGhidra(ArchitectureGhidra *g) : TypeFactory(g) {} ///< Constructor virtual ~TypeFactoryGhidra(void) {} }; #endif