GPDSPSerializable class
カスタムノードの保存と復元を実装するインターフェースクラス
Contents
カスタムノードを保存と復元に対応させるには, GPDSPSerializable クラスを継承し, load(), save() 関数を実装します.
Constructors, destructors, conversion operators
- GPDSPSerializable(void) protected explicit noexcept
- コンストラクタです.
- ~GPDSPSerializable(void) noexcept protected pure virtual
- デストラクタです.
Public functions
- GPDSPError load(GPDSPNodeRenderer* renderer, std::string const& type, std::string const& name, int format, tinyxml2::XMLElement const* element) noexcept pure virtual
- gpdsp ファイルからカスタムノードを復元します.
- GPDSPError save(GPDSPNodeRenderer const& renderer, std::shared_ptr<GPDSPNode const> const& node, std::string const& name, tinyxml2::XMLElement* element) noexcept pure virtual
- gpdsp ファイルにカスタムノードを保存します.
Function documentation
GPDSPError ir:: GPDSPSerializable:: load(GPDSPNodeRenderer* renderer,
std::string const& type,
std::string const& name,
int format,
tinyxml2::XMLElement const* element) noexcept pure virtual
gpdsp ファイルからカスタムノードを復元します.
| Parameters | |
|---|---|
| renderer in/out | GPDSPNodeRenderer クラスのインスタンスへのポインタ |
| type in | ノードの種類 |
| name in | ノード名 |
| format in | 浮動小数点のビット数 |
| element in | tinyxml2 の XML エレメント |
| Returns | |
| GPDSPERROR_OK | 正常 |
| GPDSPERROR_WAIT | [返却禁止] |
| GPDSPERROR_IGNORE | [返却禁止] |
| GPDSPERROR_FRAGMENT | [返却禁止] |
| GPDSPERROR_LOOP | [返却禁止] |
| その他のエラー | |
GPDSPError ir:: GPDSPSerializable:: save(GPDSPNodeRenderer const& renderer,
std::shared_ptr<GPDSPNode const> const& node,
std::string const& name,
tinyxml2::XMLElement* element) noexcept pure virtual
gpdsp ファイルにカスタムノードを保存します.
| Parameters | |
|---|---|
| renderer in | GPDSPNodeRenderer クラスのインスタンス |
| node in | ノードのインスタンス |
| name in | ノード名 |
| element in/out | tinyxml2 の XML エレメント |
| Returns | |
| GPDSPERROR_OK | 正常 |
| GPDSPERROR_WAIT | [返却禁止] |
| GPDSPERROR_IGNORE | [返却禁止] |
| GPDSPERROR_FRAGMENT | [返却禁止] |
| GPDSPERROR_LOOP | [返却禁止] |
| その他のエラー | |