|
OpenShot Library | libopenshot 0.2.7
|
This class loads a special text-based file called a Profile. More...
#include <Profiles.h>
Public Member Functions | |
| std::string | Json () const |
| Generate JSON string of this object. More... | |
| Json::Value | JsonValue () const |
| Generate Json::Value for this object. More... | |
| Profile (std::string path) | |
| Constructor for Profile. More... | |
| void | SetJson (const std::string value) |
| Load JSON string into this object. More... | |
| void | SetJsonValue (const Json::Value root) |
| Load Json::Value into this object. More... | |
Public Attributes | |
| ProfileInfo | info |
| Profile data stored here. More... | |
This class loads a special text-based file called a Profile.
Profile data contains common video settings, such as framerate, height, width, aspect ratio, etc... All derived classes from openshot::WriterBase can load profile data using this class.
Definition at line 81 of file Profiles.h.
| Profile::Profile | ( | std::string | path | ) |
Constructor for Profile.
| path | The folder path / location of a profile file |
Definition at line 39 of file Profiles.cpp.
| std::string Profile::Json | ( | ) | const |
Generate JSON string of this object.
Definition at line 137 of file Profiles.cpp.
| Json::Value Profile::JsonValue | ( | ) | const |
Generate Json::Value for this object.
Definition at line 144 of file Profiles.cpp.
Referenced by Json().
| void Profile::SetJson | ( | const std::string | value | ) |
Load JSON string into this object.
Definition at line 167 of file Profiles.cpp.
| void Profile::SetJsonValue | ( | const Json::Value | root | ) |
Load Json::Value into this object.
Definition at line 184 of file Profiles.cpp.
Referenced by SetJson().
| ProfileInfo openshot::Profile::info |
Profile data stored here.
Definition at line 85 of file Profiles.h.
Referenced by JsonValue(), Profile(), and SetJsonValue().