Help Center/
Atlas 500 Application/
Matrix API Reference/
Model Manager APIs (C++ Language)/
Other Compilation Dependent APIs/
AIAlgAPIRegisterar
Updated on 2022-03-13 GMT+08:00
AIAlgAPIRegisterar
Macro for registering and encapsulating the AIAlgAPIFactory class. This class is defined in ai_alg_api.h.
class AIAlgAPIRegisterar
{
public:
AIAlgAPIRegisterar(const AIAPIDescription &desc, AI_ALG_API func)
{
AIAlgAPIFactory::GetInstance()->RegisterAPI(desc, func);
api_desc_ = desc;
}
~AIAlgAPIRegisterar()
{
AIAlgAPIFactory::GetInstance()->UnRegisterApi(api_desc_);
}
private:
AIAPIDescription api_desc_;
};
Parent topic: Other Compilation Dependent APIs
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot