Пример #1
0
 public VkGlobal()
 {
     Direct = new DirectFunctions();
     InstanceLayerProperties = EnumerateInstanceLayerProperties();
     InstanceExtensionProperties = InstanceLayerProperties.Select(x => x.LayerName).ToDictionary(
         x => x, EnumerateInstanceExtensionProperties);
 }
Пример #2
0
 public VkInstance(HandleType handle, VkAllocationCallbacks allocator)
 {
     Handle = handle;
     Allocator = allocator;
     Direct = new DirectFunctions(this);
     PhysicalDevices = EnumeratePhysicalDevices();
 }
Пример #3
0
 public VkInstance(HandleType handle, VkAllocationCallbacks allocator)
 {
     Handle          = handle;
     Allocator       = allocator;
     Direct          = new DirectFunctions(this);
     PhysicalDevices = EnumeratePhysicalDevices();
 }
Пример #4
0
 public VkGlobal()
 {
     Direct = new DirectFunctions();
     InstanceLayerProperties     = EnumerateInstanceLayerProperties();
     InstanceExtensionProperties = InstanceLayerProperties.Select(x => x.LayerName).ToDictionary(
         x => x, EnumerateInstanceExtensionProperties);
     InstanceExtensionProperties.Add("NULL_VKNET", EnumerateInstanceExtensionProperties(null));
 }
Пример #5
0
 public VkPhysicalDevice(IVkInstance instance, IntPtr handle)
 {
     Instance = instance;
     Handle = handle;
     Direct = new DirectFunctions(instance);
     Properties = GetPhysicalDeviceProperties();
     QueueFamilyProperties = GetPhysicalDeviceQueueFamilyProperties();
     Features = GetPhysicalDeviceFeatures();
     MemoryProperties = GetPhysicalDeviceMemoryProperties();
     DisplayAggregatesKHR = GetDisplayAggregatesKHR();
 }
Пример #6
0
 public VkPhysicalDevice(IVkInstance instance, IntPtr handle)
 {
     Instance              = instance;
     Handle                = handle;
     Direct                = new DirectFunctions(instance);
     Properties            = GetPhysicalDeviceProperties();
     QueueFamilyProperties = GetPhysicalDeviceQueueFamilyProperties();
     Features              = GetPhysicalDeviceFeatures();
     MemoryProperties      = GetPhysicalDeviceMemoryProperties();
     ExtensionProperties   = EnumerateDeviceExtensionProperties(null).Object.ToArray();
     DisplayAggregatesKHR  = GetDisplayAggregatesKHR();
 }
Пример #7
0
 public static IntPtr GetInstanceProcAddr(IVkInstance instance, string name)
 {
     fixed(byte *pName = name.ToAnsiArray())
     return(DirectFunctions.vkGetInstanceProcAddr(instance.SafeGetHandle(), pName));
 }
 /// <summary>
 /// Returns a list of all the Schemas defined in Linkar Schemas, or the EntryPoint account data files, synchronously only, with TABLE output format.
 /// </summary>
 /// <param name="credentialOptions">Object with data necessary to access the Linkar Server: Username, Password, EntryPoint, Language, FreeText.</param>
 /// <param name="lkSchemasOptions">This object defines the different options in base of the asked Schema Type: LKSCHEMAS, SQLMODE o DICTIONARIES.</param>
 /// <param name="customVars">Free text sent to the database allows management of additional behaviours in SUB.LK.MAIN.CONTROL.CUSTOM, which is called when this parameter is set.</param>
 /// <param name="receiveTimeout">Maximum time in seconds that the client will wait for a response from the server. Default = 0 to wait indefinitely.</param>
 /// <returns>The results of the operation.</returns>
 /// <example>
 /// <code lang="CS">
 /// using Linkar;
 /// using Linkar.Functions.Direct.TABLE;
 ///
 /// class Test
 ///     {
 ///         public string MyLkSchemas()
 ///         {
 ///             string result = "";
 ///             try
 ///             {
 ///                 CredentialOptions credentials = new CredentialOptions("127.0.0.1", "EPNAME", 11300, "admin", "admin");
 ///                 LkSchemasOptions options = new LkSchemasOptions(RowHeaders.TYPE.MAINLABEL, false, false);
 ///                 result = Functions.LkSchemas(credentials, options);
 ///             }
 ///             catch (Exception ex)
 ///             {
 ///                 string error = ex.Message;
 ///                 // Do something
 ///             }
 ///             return result;
 ///         }
 ///     }
 /// </code>
 /// <code lang="VB">
 /// Imports Linkar
 /// Imports Linkar.Functions.Direct.TABLE
 ///
 /// Class Test
 ///
 ///     Public Function MyLkSchemas() As String
 ///         Dim result As String = ""
 ///
 ///         Try
 ///             Dim credentials As CredentialOptions = New CredentialOptions("127.0.0.1", "EPNAME", 11300, "admin", "admin")
 ///
 ///             Dim options As LkSchemasOptions = New LkSchemasOptions(RowHeaders.TYPE.MAINLABEL, False, False);
 ///             result = Functions.LkSchemas(credentials, options)
 ///     Catch ex As Exception
 ///         Dim[error] As String = ex.Message
 ///             ' Do something
 ///
 ///         End Try
 ///
 ///         Return result
 ///   End Function
 /// End Class
 /// </code>
 /// </example>
 /// <remarks>
 /// TABLE output format uses the defined control characters in <see href="http://kosday.com/Manuals/en_web_linkar/lk_schemas_ep_parameters.html">EntryPoints Parameters</see> Table Row Separator and Column Row Separator.
 /// <para>By default:
 /// <list type="bullet">
 /// <item>TAB char (9) for columns.</item>
 /// <item>VT char (11) for rows.</item>
 /// </list>
 /// </para>
 /// </remarks>
 public static string LkSchemas(CredentialOptions credentialOptions, LkSchemasOptions lkSchemasOptions = null,
                                string customVars = "", int receiveTimeout = 0)
 {
     return(DirectFunctions.LkSchemas(credentialOptions, lkSchemasOptions, DATAFORMATSCH_TYPE.TABLE, customVars, receiveTimeout));
 }
 /// <summary>
 /// Returns a query result in a table format, synchronously only.
 /// </summary>
 /// <param name="credentialOptions">Object with data necessary to access the Linkar Server: Username, Password, EntryPoint, Language, FreeText.</param>
 /// <param name="filename">File or table name defined in Linkar Schemas. Table notation is: MainTable[.MVTable[.SVTable]]</param>
 /// <param name="selectClause">Statement fragment specifies the selection condition. For example WITH CUSTOMER = '1'</param>
 /// <param name="dictClause">Space-delimited list of dictionaries to read. If this list is not set, all fields are returned. For example CUSTOMER DATE ITEM. In NONE mode you may use the format LKFLDx where x is the attribute number.</param>
 /// <param name="sortClause">Statement fragment specifies the selection order. If there is a selection rule Linkar will execute a SSELECT, otherwise Linkar will execute a SELECT. For example BY CUSTOMER</param>
 /// <param name="tableOptions">Detailed options to be used, including: rowHeaders, rowProperties, onlyVisibe, usePropertyNames, repeatValues, applyConversion, applyFormat, calculated, pagination, regPage, numPage.</param>
 /// <param name="customVars">Free text sent to the database allows management of additional behaviours in SUB.LK.MAIN.CONTROL.CUSTOM, which is called when this parameter is set.</param>
 /// <param name="receiveTimeout">Maximum time in seconds that the client will wait for a response from the server. Default = 0 to wait indefinitely.</param>
 /// <returns>The results of the operation.</returns>
 /// <example>
 /// <code lang="CS">
 /// using Linkar;
 /// using Linkar.Functions.Direct.TABLE;
 ///
 /// class Test
 ///     {
 ///         public string MyGetTable()
 ///         {
 ///             string result = "";
 ///             try
 ///             {
 ///                 CredentialOptions credentials = new CredentialOptions("127.0.0.1", "EPNAME", 11300, "admin", "admin");
 ///                 TableOptions options = new TableOptions(RowHeaders.TYPE.MAINLABEL, false, false, false, false, false, false, false);
 ///                 result = Functions.GetTable(credentials, "LK.CUSTOMERS", options);
 ///             }
 ///             catch (Exception ex)
 ///             {
 ///                 string error = ex.Message;
 ///                 // Do something
 ///             }
 ///             return result;
 ///         }
 ///     }
 /// </code>
 /// <code lang="VB">
 /// Imports Linkar
 /// Imports Linkar.Functions.Direct.TABLE
 ///
 /// Class Test
 ///
 ///     Public Function MyGetTable() As String
 ///         Dim result As String = ""
 ///
 ///         Try
 ///             Dim credentials As CredentialOptions = New CredentialOptions("127.0.0.1", "EPNAME", 11300, "admin", "admin")
 ///
 ///             Dim options As TableOptions = New TableOptions(RowHeaders.TYPE.MAINLABEL, False, False, False, False, False, False, False);
 ///             result = Functions.GetTable(credentials, "LK.CUSTOMERS",options)
 ///         Catch ex As Exception
 ///
 ///             Dim[error] As String = ex.Message
 ///             ' Do something
 ///         End Try
 ///
 ///         Return result
 ///   End Function
 /// End Class
 /// </code>
 /// </example>
 /// <remarks>
 /// TABLE output format uses the defined control characters in <see href="http://kosday.com/Manuals/en_web_linkar/lk_schemas_ep_parameters.html">EntryPoints Parameters</see> Table Row Separator and Column Row Separator.
 /// <para>By default:
 /// <list type="bullet">
 /// <item>TAB char (9) for columns.</item>
 /// <item>VT char (11) for rows.</item>
 /// </list>
 /// </para>
 /// </remarks>
 public static string GetTable(CredentialOptions credentialOptions, string filename, string selectClause = "", string dictClause = "", string sortClause = "",
                               TableOptions tableOptions = null, string customVars = "", int receiveTimeout = 0)
 {
     return(DirectFunctions.GetTable(credentialOptions, filename, selectClause, dictClause, sortClause, tableOptions, customVars, receiveTimeout));
 }
 /// <summary>
 /// Returns the Schema properties list defined in Linkar Schemas or the file dictionaries, synchronously only, with TABLE output format.
 /// </summary>
 /// <param name="credentialOptions">Object with data necessary to access the Linkar Server: Username, Password, EntryPoint, Language, FreeText.</param>
 /// <param name="filename">File name to LkProperties</param>
 /// <param name="lkPropertiesOptions">This object defines the different options in base of the asked Schema Type: LKSCHEMAS, SQLMODE o DICTIONARIES.</param>
 /// <param name="customVars">Free text sent to the database allows management of additional behaviours in SUB.LK.MAIN.CONTROL.CUSTOM, which is called when this parameter is set.</param>
 /// <param name="receiveTimeout">Maximum time in seconds that the client will wait for a response from the server. Default = 0 to wait indefinitely.</param>
 /// <returns>The results of the operation.</returns>
 /// <example>
 /// <code lang="CS">
 /// using Linkar;
 /// using Linkar.Functions.Direct.TABLE;
 ///
 /// class Test
 ///     {
 ///         public string MyLkProperties()
 ///         {
 ///             string result = "";
 ///             try
 ///             {
 ///                 CredentialOptions credentials = new CredentialOptions("127.0.0.1", "EPNAME", 11300, "admin", "admin");
 ///                 LkPropertiesOptions options = new LkPropertiesOptions(RowHeaders.TYPE.MAINLABEL, false, false, false);
 ///                 result = Functions.LkProperties(credentials, "LK.CUSTOMERS", options);
 ///             }
 ///             catch (Exception ex)
 ///             {
 ///                 string error = ex.Message;
 ///                 // Do something
 ///             }
 ///             return result;
 ///         }
 ///     }
 /// </code>
 /// <code lang="VB">
 /// Imports Linkar
 /// Imports Linkar.Functions.Direct.TABLE
 ///
 /// Class Test
 ///
 ///     Public Function MyLkProperties() As String
 ///         Dim result As String = ""
 ///
 ///         Try
 ///             Dim credentials As CredentialOptions = New CredentialOptions("127.0.0.1", "EPNAME", 11300, "admin", "admin")
 ///
 ///             Dim options As LkPropertiesOptions = New LkPropertiesOptions(RowHeaders.TYPE.MAINLABEL, False, False, False);
 ///             result = Functions.LkProperties(credentials, "LK.CUSTOMERS",options)
 ///         Catch ex As Exception
 ///
 ///             Dim[error] As String = ex.Message
 ///             ' Do something
 ///         End Try
 ///
 ///         Return result
 ///   End Function
 /// End Class
 /// </code>
 /// </example>
 /// <remarks>
 /// TABLE output format uses the defined control characters in <see href="http://kosday.com/Manuals/en_web_linkar/lk_schemas_ep_parameters.html">EntryPoints Parameters</see> Table Row Separator and Column Row Separator.
 /// <para>By default:
 /// <list type="bullet">
 /// <item>TAB char (9) for columns.</item>
 /// <item>VT char (11) for rows.</item>
 /// </list>
 /// </para>
 /// </remarks>
 public static string LkProperties(CredentialOptions credentialOptions, string filename, LkPropertiesOptions lkPropertiesOptions = null,
                                   string customVars = "", int receiveTimeout = 0)
 {
     return(DirectFunctions.LkProperties(credentialOptions, filename, lkPropertiesOptions, DATAFORMATSCH_TYPE.TABLE, customVars, receiveTimeout));
 }