AVPKit
URLProtocolHandlerFactory.h
1 /*
2  * File: URLProtocolHandlerFactory.h
3  * Author: Olivier
4  *
5  * Created on 4 décembre 2024, 14:23
6  */
7 
8 #ifndef URLPROTOCOLHANDLERFACTORY_H
9 #define URLPROTOCOLHANDLERFACTORY_H
10 
11 #include <com/avpkit/core/io/URLProtocolHandler.h>
12 
13 namespace com { namespace avpkit { namespace core { namespace io
14  {
15  class URLProtocolHandler;
19  class VS_API_AVPKIT_IO URLProtocolHandlerFactory
20  {
21  public:
22 
28  virtual URLProtocolHandler* getHandler(const char* url, int flags)=0;
29 
34  virtual const char* getProtocolName()=0;
35 
36  protected:
37  virtual ~URLProtocolHandlerFactory() = default;
38  };
39 }}}}
40 
41 #endif /* URLPROTOCOLHANDLERFACTORY_H */
42 
A class for managing custom io protocols.
virtual const char * getProtocolName()=0
Returns the protocol name.
virtual URLProtocolHandler * getHandler(const char *url, int flags)=0
Returns a URLProtocol handler for the given url and flags.
WARNING: Do not use logging in this class, and do not set any static file variables to values other t...