FGAライブラリの初期化チェック

Namespace: fvalgcli
Assembly: fvalgcli_fga (in fvalgcli_fga.dll) Version: 3.1.0.0 (3.1.0.3)

Syntax

C#
public static bool fnFGA_is_setuped()
Visual Basic
Public Shared Function fnFGA_is_setuped As Boolean

Return Value

Type: Boolean
FGAライブラリ全体にかかわる初期化が行われているかチェックします。 fnFGA_setup()()()() が実行済みの場合は true を、そうでない場合は false を返します。

Examples

C# Copy imageCopy
//    $Revision: 1.1 $

using System;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;
using fvalgcli;

namespace TC
{
    public partial class FIE
    {
        /// <summary>
        /// FIEライブラリの初期化チェック.
        /// </summary>
        public void fnFGA_is_setuped()
        {
            int status = (int)f_err.F_ERR_NONE;

            try
            {
                // FIEライブラリの終了.
                status = fga.fnFGA_teardown();
                if (status != (int)f_err.F_ERR_NONE)
                    throw new FvException(status, "fnFGA_teardown: エラーが発生しました。");

                // FIEライブラリ初期化チェック.
                if (fga.fnFGA_is_setuped() != false)
                    throw new FvException(status, "FIEライブラリは終了していません。");

                // FIEライブラリの初期化.
                status = fga.fnFGA_setup();
                if (status != (int)f_err.F_ERR_NONE)
                    throw new FvException(status, "fnFGA_setup: エラーが発生しました。");

                // FIEライブラリ初期化チェック.
                if (fga.fnFGA_is_setuped() != true)
                    throw new FvException(status, "FIEライブラリは初期化されていません。");
            }
            finally
            {
            }
        }
    }
}

See Also