OHyMoS.NET Class Library

OhInputFileLong クラス

ファイルからデータ値が long 型であるデータパックを読み取る入力端子を表すクラスです。 このクラスはOhInputFileを 継承しています。

The OhInputFileLong class is a class of input port which reads in datapacks of type long from an input file and sends them. It extends OhInputFile class.

この型のすべてのメンバの一覧については、 OhInputFileLong メンバを参照してください。

System.Object
   OhymosNet.OhObject
      OhymosNet.OhPort
         OhymosNet.OhSenderPort
            OhymosNet.OhSendPort
               OhymosNet.OhInputPort
                  OhymosNet.OhInputFile
                     OhymosNet.OhInputFileLong

public class OhInputFileLong : OhInputFile

解説

端子を接続するには、接続する各端子のデータ型が合っている必要があります。 したがって、OhInputFileLongは

と接続することができます。

読み取るデータは1つのデータパックにつき1行ごとに書かれ、 下の例のように、スペースまたはタブで区切られているものとします。
2003 120 0.3 1.2 2.3 4.5
違う形式で読み取る場合には、このクラスを継承したクラスを作成し、 makeDataPack(string)を 再定義してください。

OhInputFileLong can be connected with OhReceiveLong, OhRelayLong, and OhOutputFileLong. OhInputFileLong reads an input file using "simple data format for input and output."

"Simple data format for input and output" is a format in which ..... all the data items for a datapack should be written in one line, and data items should be separated with a number of spaces or tabs.
2003 120 0.3 1.2 2.3 4.5
.... If you need different format, please make a derived class of OhInputFileLong and redefine "makeDataPack(string)".

必要条件

名前空間: OhymosNet

アセンブリ: OhymosNet (OhymosNet.dll 内)

参照

OhInputFileLong メンバ | OhymosNet 名前空間