OHyMoS.NET Class Library

OhObject.oPrint メソッド (StreamWriter, String)

オブジェクト情報(所有者の情報を含む)を出力します。

public virtual void oPrint(
   StreamWriter aSw,
   string aHead
);

パラメータ

aSw
a StreamWriter value

出力先StreamWriterオブジェクト
aHead
a String value

行頭に付加する文字列

解説

例えば

であり で、現在のオブジェクトはGinkakuであるとします。

このとき、Ginkaku.oPrint(sw, "+ ")とした場合の出力は

+ Temple Ginkaku 3
+    _owner > Ward Sakyo 2
+    _owner >> City Kyoto 1
となります。

Trace back the object's ancestry, that is, prints all the ancesters to aSw as far as an ancester exists. "aHead" is printed before the ancestry.


EXAMPLE
  Yahoo a("yahoo", 0);
  Yahoo b("yahoobb", 1);
  b.Owner = a;
  StringWriter aSw;
  b.oPrint(aSw, "+ ");
prints to aSw as follows
  + Yahoo yahoobb 1
  +     owner > Yahoo yahoo 0

参照

OhObject クラス | OhymosNet 名前空間 | OhObject.oPrint オーバーロードの一覧