Help us understand the problem. What is going on with this article?

ofxXmlSettingsのドキュメントを勝手に翻訳

英語の勉強のためにドキュメントを勝手に翻訳、内容が間違っていても一切責任は負いません。
オリジナル https://openframeworks.cc/ja/documentation/

単純なXMLローダーとセーバー

ofxXmlSettings allows you to save data to an xml file and to read data from it. It can be useful, for example, if your OF application is collecting data and you want to export them at the end of the process, or if you want to initialize your application reading values from an xml configuration.

In order to use it, include it in your ofApp.h

#include "ofxXmlSettings.h"
class ofApp : public ofBaseApp{
    // ...
    ofxXmlSettings XML;
    // ...
}

To load a file, in your ofApp.cpp class

XML.loadFile("mySettings.xml");

exampleフォルダー(example/addons/xmlSettingsExample)に使い方が書いてあります。書いてあるのは、xmlからフィールドを読み出す、新しい項目を追加、既存の項目の値を変更、です。

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした