1
0
mirror of https://github.com/borgesdan/xn65 synced 2024-12-29 21:54:47 +01:00
xn65/includes/xna/csharp/service.hpp

18 lines
468 B
C++

#ifndef XNA_CSHARP_SERVICE_HPP
#define XNA_CSHARP_SERVICE_HPP
#include "../default.hpp"
#include "type.hpp"
#include <any>
namespace xna {
//A simplified port of the System.IServiceProvider
//Defines a mechanism for retrieving a service object; that is, an object that provides custom support to other objects.
class IServiceProvider {
public:
//Gets the service object of the specified type.
virtual std::any GetService(Type& serviceType) = 0;
};
}
#endif