Hot Door CORE 0.8.2
Adobe® Illustrator® Plug-in Library
|
Aids in preference storage by reading/writing the JSON data in a given file. More...
#include <hdicorePreferences.h>
Classes | |
class | Iterator |
Allows for iteration through the members of a Preferences object, a la std::vector iteration. More... | |
Public Types | |
typedef std::vector< std::shared_ptr< PrefData > > | PrefDataVector |
typedef std::unique_ptr< Iterator > | IteratorUP |
typedef std::shared_ptr< Iterator > | IteratorSP |
typedef std::weak_ptr< Iterator > | IteratorWP |
Public Member Functions | |
Preferences () | |
Constructs an empty Preferences object. | |
Preferences (const Preferences &prefs_) | |
Constructs a new Preferences object from an existing Preferences object (copy constructor) | |
virtual | ~Preferences () |
Destructs a Preferences object. | |
virtual Preferences & | operator= (const Preferences &rhs_) |
Assigns one Preferences object to another. | |
virtual bool | isEmpty () const |
Gets whether the target Preferences object is empty (constructed with the default ctor) | |
virtual bool | reload (const std::string &path_) |
Reloads the preferences data from disk (as it is kept in memory at runtime, this might be necessary if another process or plugin manipulates the file) | |
virtual bool | save (const std::string &path_) const |
Writes JSON preferences data to a file. | |
virtual uint64_t | saveCount () const |
Gets the save count of the prefs file. | |
virtual bool | addPref (const PrefData &pref_) |
Adds a preference object into the prefs data tree, such that when the prefs are written the individual pref data will be present. | |
virtual bool | getPref (const std::string &key_, std::unique_ptr< PrefData > &pref__) const |
Gets a single preference object from the prefs data tree. | |
virtual bool | removePref (const PrefData &pref_) |
Removes a preference from the prefs data tree. | |
virtual Iterator | begin () const |
Gets an iterator for the Preferences object. | |
virtual bool | getArrayPref (const std::string &key_, ArrayPref &array__) const |
Gets an array pref from the prefs data tree. | |
virtual bool | getOrCreateArrayPref (const std::string &key_, const PrefDataVector *elements_, ArrayPref &array__) |
Similar to getArrayPref(), except that, if the pref does not already exist, it will be created anew with a series of default elements. | |
virtual bool | getArtboardPointPref (const std::string &key_, ArtboardPointPref &abp__) const |
Gets an artboard point pref from the prefs data tree. | |
virtual bool | getOrCreateArtboardPointPref (const std::string &key_, const ArtboardPoint &default_, ArtboardPointPref &abp__) |
Similar to getArtboardPointPref(), except that, if the pref does not already exist, it will be created anew with a default value. | |
virtual bool | getArtboardRectPref (const std::string &key_, ArtboardRectPref &abr__) const |
Gets an artboard rect pref from the prefs data tree. | |
virtual bool | getOrCreateArtboardRectPref (const std::string &key_, const ArtboardRect &default_, ArtboardRectPref &abr__) |
Similar to getArtboardRectPref(), except that, if the pref does not already exist, it will be created anew with a default value. | |
virtual bool | getArtColorPref (const std::string &key_, ArtColorPref &ac__) const |
Gets an art color pref from the prefs data tree. | |
virtual bool | getOrCreateArtColorPref (const std::string &key_, const ArtColor &default_, ArtColorPref &ac__) |
Similar to getArtColorPref(), except that, if the pref does not already exist, it will be created anew with a default value. | |
virtual bool | getBoolPref (const std::string &key_, BoolPref &b__) const |
Gets a bool pref from the prefs data tree. | |
virtual bool | getOrCreateBoolPref (const std::string &key_, const bool default_, BoolPref &b__) |
Similar to getBoolPref(), except that, if the pref does not already exist, it will be created anew with a default value. | |
virtual bool | getColorPref (const std::string &key_, ColorPref &c__) const |
Gets a color pref from the prefs data tree. | |
virtual bool | getOrCreateColorPref (const std::string &key_, const Color &default_, ColorPref &c__) |
Similar to getColorPref(), except that, if the pref does not already exist, it will be created anew with a default value. | |
virtual bool | getDashStylePref (const std::string &key_, DashStylePref &ds__) |
Gets a persistent dash style object from the prefs data tree. | |
virtual bool | getOrCreateDashStylePref (const std::string &key_, const DashStyle &default_, DashStylePref &ds__) |
Similar to getDashStylePref(), except that, if the member does not already exist, it will be created anew with a default value. | |
virtual bool | getDashStyleMapPref (const std::string &key_, DashStyleMapPref &ds__) |
Gets a persistent dash style map object from the prefs data tree. | |
virtual bool | getOrCreateDashStyleMapPref (const std::string &key_, const DashStyle::Map &default_, DashStyleMapPref &ds__) |
Similar to getDashStyleMapPref(), except that, if the member does not already exist, it will be created anew with a default value. | |
virtual bool | getDictPref (const std::string &key_, DictionaryPref &dict__) const |
Gets a dictionary pref from the prefs data tree. | |
virtual bool | getOrCreateDictPref (const std::string &key_, const PrefDataVector *members_, DictionaryPref &dict__) |
Similar to getDictPref(), except that, if the pref does not already exist, it will be created anew with a series of default members. | |
virtual bool | getFillStylePref (const std::string &key_, FillStylePref &fs__) |
Gets a persistent fill style object from the prefs data tree. | |
virtual bool | getOrCreateFillStylePref (const std::string &key_, const FillStyle &default_, FillStylePref &fs__) |
Similar to getFillStylePref(), except that, if the member does not already exist, it will be created anew with a default value. | |
virtual bool | getFillStyleMapPref (const std::string &key_, FillStyleMapPref &fs__) |
Gets a persistent fill style map object from the prefs data tree. | |
virtual bool | getOrCreateFillStyleMapPref (const std::string &key_, const FillStyle::Map &default_, FillStyleMapPref &fs__) |
Similar to getFillStyleMapPref(), except that, if the member does not already exist, it will be created anew with a default value. | |
virtual bool | getFontPref (const std::string &key_, FontPref &font__) const |
Gets a font pref from the prefs data tree. | |
virtual bool | getOrCreateFontPref (const std::string &key_, const Font &defaultFont_, const double defaultSize_, FontPref &font__) |
Similar to getFontPref(), except that, if the pref does not already exist, it will be created anew with a default value. | |
virtual bool | getTransformMatrixPref (const std::string &key_, TransformMatrixPref &tm__) const |
Gets a transform matrix pref from the prefs data tree. | |
virtual bool | getOrCreateTransformMatrixPref (const std::string &key_, const TransformMatrix &default_, TransformMatrixPref &tm__) |
Similar to getTransformMatrixPref(), except that, if the pref does not already exist, it will be created anew with a default value. | |
virtual bool | getNumberPref (const std::string &key_, NumberPref &n__) const |
Gets a number pref from the prefs data tree. | |
virtual bool | getOrCreateIntPref (const std::string &key_, const int64_t default_, NumberPref &n__) |
Similar to getNumberPref(), except that, if the pref does not already exist, it will be created anew with a default value. | |
virtual bool | getOrCreateFloatPref (const std::string &key_, const double default_, NumberPref &n__) |
Similar to getNumberPref(), except that, if the pref does not already exist, it will be created anew with a default value. | |
virtual bool | getPathStylePref (const std::string &key_, PathStylePref &ps__) |
Gets a persistent path style object from the prefs data tree. | |
virtual bool | getOrCreatePathStylePref (const std::string &key_, const PathStyle &default_, PathStylePref &ps__) |
Similar to getPathStylePref(), except that, if the member does not already exist, it will be created anew with a default value. | |
virtual bool | getPathStyleMapPref (const std::string &key_, PathStyleMapPref &ps__) |
Gets a persistent path style map object from the prefs data tree. | |
virtual bool | getOrCreatePathStyleMapPref (const std::string &key_, const PathStyle::Map &default_, PathStyleMapPref &ps__) |
Similar to getPathStyleMapPref(), except that, if the member does not already exist, it will be created anew with a default value. | |
virtual bool | getPointPref (const std::string &key_, PointPref &p__) const |
Gets a point pref from the prefs data tree. | |
virtual bool | getOrCreatePointPref (const std::string &key_, const Point &default_, PointPref &p__) |
Similar to getPointPref(), except that, if the pref does not already exist, it will be created anew with a default value. | |
virtual bool | getRectPref (const std::string &key_, RectPref &r__) const |
Gets a rect pref from the prefs data tree. | |
virtual bool | getOrCreateRectPref (const std::string &key_, const Rect &default_, RectPref &r__) |
Similar to getRectPref(), except that, if the pref does not already exist, it will be created anew with a default value. | |
virtual bool | getSizePref (const std::string &key_, SizePref &s__) const |
Gets a size pref from the prefs data tree. | |
virtual bool | getOrCreateSizePref (const std::string &key_, const Size &default_, SizePref &s__) |
Similar to getSizePref(), except that, if the pref does not already exist, it will be created anew with a default value. | |
virtual bool | getStringPref (const std::string &key_, StringPref &str__) const |
Gets a string pref from the prefs data tree. | |
virtual bool | getOrCreateStringPref (const std::string &key_, const std::string &default_, StringPref &str__) |
Similar to getStringPref(), except that, if the pref does not already exist, it will be created anew with a default value. | |
virtual bool | getStrokeStylePref (const std::string &key_, StrokeStylePref &ss__) |
Gets a persistent stroke style object from the prefs data tree. | |
virtual bool | getOrCreateStrokeStylePref (const std::string &key_, const StrokeStyle &default_, StrokeStylePref &ss__) |
Similar to getStrokeStylePref(), except that, if the member does not already exist, it will be created anew with a default value. | |
virtual bool | getStrokeStyleMapPref (const std::string &key_, StrokeStyleMapPref &ss__) |
Gets a persistent stroke style map object from the prefs data tree. | |
virtual bool | getOrCreateStrokeStyleMapPref (const std::string &key_, const StrokeStyle::Map &default_, StrokeStyleMapPref &ss__) |
Similar to getStrokeStyleMapPref(), except that, if the member does not already exist, it will be created anew with a default value. | |
virtual int32_t | versionNumber () const |
Gets the number version for the preferences data. | |
virtual bool | setVersionNumber (const int32_t version_) |
Sets the number version for the preferences data. | |
virtual std::string | versionString () const |
Gets the version string for the preferences data. | |
virtual bool | setVersionString (const std::string &version_) |
Sets the version string for the preferences data. | |
Static Public Member Functions | |
static bool | load (const std::string &path_, Preferences &prefs__) |
Convenience method to create a Preferences object from JSON data in a file. | |
Protected Member Functions | |
Preferences (const aip::Preferences &) | |
Internal use only. | |
Protected Attributes | |
void * | __data |
Private implementation data. | |
Aids in preference storage by reading/writing the JSON data in a given file.
hdi::core::Preferences::Preferences | ( | ) |
Constructs an empty Preferences object.
hdi::core::Preferences::Preferences | ( | const Preferences & | prefs_ | ) |
Constructs a new Preferences object from an existing Preferences object (copy constructor)
prefs_ | Existing Preferences object |
|
virtual |
Destructs a Preferences object.
|
protected |
Internal use only.
|
virtual |
Adds a preference object into the prefs data tree, such that when the prefs are written the individual pref data will be present.
pref_ | New preference to add into the top-level of the prefs data tree |
|
virtual |
Gets an iterator for the Preferences object.
|
virtual |
Gets an array pref from the prefs data tree.
key_ | UTF-8 name/key of the array to get from the top-level and return as a neatly-packed PrefData subclass |
array__ | Return-by-reference for the array pref identified by key_ |
|
virtual |
Gets an artboard point pref from the prefs data tree.
key_ | UTF-8 name/key of the artboard point to get from the top-level and return as a neatly-packed PrefData subclass |
abp__ | Return-by-reference for the artboard point pref identified by key_ |
|
virtual |
Gets an artboard rect pref from the prefs data tree.
key_ | UTF-8 name/key of the artboard rect to get from the top-level and return as a neatly-packed PrefData subclass |
abr__ | Return-by-reference for the artboard rect pref identified by key_ |
|
virtual |
Gets an art color pref from the prefs data tree.
key_ | UTF-8 name/key of the art color to get from the top-level and return as a neatly- packed PrefData subclass |
ac__ | Return-by-reference for the art color pref identified by key_ |
|
virtual |
Gets a bool pref from the prefs data tree.
key_ | UTF-8 name/key of the bool to get from the top-level and return as a neatly- packed PrefData subclass |
b__ | Return-by-reference for the bool pref identified by key_ |
|
virtual |
Gets a color pref from the prefs data tree.
key_ | UTF-8 name/key of the color to get from the top-level and return as a neatly- packed PrefData subclass |
c__ | Return-by-reference for the color pref identified by key_ |
|
virtual |
Gets a persistent dash style map object from the prefs data tree.
key_ | UTF-8 name/key of the dash style map to get from the top-level and return as a neatly-packed PrefData subclass |
ds__ | Return-by-reference for the dash style map member identified by key_ |
|
virtual |
Gets a persistent dash style object from the prefs data tree.
key_ | UTF-8 name/key of the dash style to get from the top-level and return as a neatly-packed PrefData subclass |
ds__ | Return-by-reference for the dash style member identified by key_ |
|
virtual |
Gets a dictionary pref from the prefs data tree.
key_ | UTF-8 name/key of the dictionary to get from the top-level and return as a neatly-packed PrefData subclass |
dict__ | Return-by-reference for the dictionary pref identified by key_ |
|
virtual |
Gets a persistent fill style map object from the prefs data tree.
key_ | UTF-8 name/key of the fill style map to get from the top-level and return as a neatly-packed PrefData subclass |
ds__ | Return-by-reference for the fill style map member identified by key_ |
|
virtual |
Gets a persistent fill style object from the prefs data tree.
key_ | UTF-8 name/key of the fill style to get from the top-level and return as a neatly-packed PrefData subclass |
ds__ | Return-by-reference for the fill style member identified by key_ |
|
virtual |
Gets a font pref from the prefs data tree.
key_ | UTF-8 name/key of the font to get from the top-level and return as a neatly- packed PrefData subclass |
font__ | Return-by-reference for the font pref identified by key_ |
|
virtual |
Gets a number pref from the prefs data tree.
key_ | UTF-8 name/key of the number to get from the top-level and return as a neatly- packed PrefData subclass |
n__ | Return-by-reference for the number pref identified by key_ |
|
virtual |
Similar to getArrayPref(), except that, if the pref does not already exist, it will be created anew with a series of default elements.
key_ | UTF-8 name/key of the array to get from the top-level and return as a neatly- packed PrefData subclass |
elements_ | Default elements for the array, in case it didn't already exist (NULL, or an empty vector, for none) |
array__ | Return-by-reference for the array pref identified by key_ |
|
virtual |
Similar to getArtboardPointPref(), except that, if the pref does not already exist, it will be created anew with a default value.
key_ | UTF-8 name/key of the artboard point to get from the top-level and return as a neatly-packed PrefData subclass |
default_ | Default value for the pref, in case it didn't already exist |
abp__ | Return-by-reference for the artboard point pref identified by key_ |
|
virtual |
Similar to getArtboardRectPref(), except that, if the pref does not already exist, it will be created anew with a default value.
key_ | UTF-8 name/key of the artboard rect to get from the top-level and return as a neatly-packed PrefData subclass |
default_ | Default value for the pref, in case it didn't already exist |
abr__ | Return-by-reference for the artboard rect pref identified by key_ |
|
virtual |
Similar to getArtColorPref(), except that, if the pref does not already exist, it will be created anew with a default value.
key_ | UTF-8 name/key of the art color to get from the top-level and return as a neatly-packed PrefData subclass |
default_ | Default value for the pref, in case it didn't already exist |
ac__ | Return-by-reference for the art color pref identified by key_ |
|
virtual |
Similar to getBoolPref(), except that, if the pref does not already exist, it will be created anew with a default value.
key_ | UTF-8 name/key of the bool to get from the top-level and return as a neatly-packed PrefData subclass |
default_ | Default value for the pref, in case it didn't already exist |
b__ | Return-by-reference for the bool pref identified by key_ |
|
virtual |
Similar to getColorPref(), except that, if the pref does not already exist, it will be created anew with a default value.
key_ | UTF-8 name/key of the color to get from the top-level and return as a neatly- packed PrefData subclass |
default_ | Default value for the pref, in case it didn't already exist |
c__ | Return-by-reference for the color pref identified by key_ |
|
virtual |
Similar to getDashStyleMapPref(), except that, if the member does not already exist, it will be created anew with a default value.
key_ | UTF8 name/key of the dash style map to get from the top-level and return as a neatly-packed PrefData subclass |
default_ | Default value for the member, in case it didn't already exist |
c__ | Return-by-reference for the dash style map member identified by key_ (or created anew) |
|
virtual |
Similar to getDashStylePref(), except that, if the member does not already exist, it will be created anew with a default value.
key_ | UTF8 name/key of the dash style to get from the top-level and return as a neatly-packed PrefData subclass |
default_ | Default value for the member, in case it didn't already exist |
c__ | Return-by-reference for the dash style member identified by key_ (or created anew) |
|
virtual |
Similar to getDictPref(), except that, if the pref does not already exist, it will be created anew with a series of default members.
key_ | UTF-8 name/key of the dictionary to get from the top-level and return as a neatly-packed PrefData subclass |
members_ | Default members for the dictionary, in case it didn't already exist (NULL, or an empty vector, for none) |
dict__ | Return-by-reference for the dictionary pref identified by key_ |
|
virtual |
Similar to getFillStyleMapPref(), except that, if the member does not already exist, it will be created anew with a default value.
key_ | UTF8 name/key of the fill style map to get from the top-level and return as a neatly-packed PrefData subclass |
default_ | Default value for the member, in case it didn't already exist |
c__ | Return-by-reference for the fill style map member identified by key_ (or created anew) |
|
virtual |
Similar to getFillStylePref(), except that, if the member does not already exist, it will be created anew with a default value.
key_ | UTF8 name/key of the fill style to get from the top-level and return as a neatly-packed PrefData subclass |
default_ | Default value for the member, in case it didn't already exist |
c__ | Return-by-reference for the fill style member identified by key_ (or created anew) |
|
virtual |
Similar to getNumberPref(), except that, if the pref does not already exist, it will be created anew with a default value.
key_ | UTF-8 name/key of the number to get from the top-level and return as a neatly-packed PrefData subclass |
default_ | Default double value for the pref, in case it didn't already exist |
n__ | Return-by-reference for the number pref identified by key_ |
|
virtual |
Similar to getFontPref(), except that, if the pref does not already exist, it will be created anew with a default value.
key_ | UTF-8 name/key of the font to get from the top-level and return as a neatly-packed PrefData subclass |
defaultFont_ | Default font for the pref, in case it didn't already exist |
defaultSize_ | Default size for the pref, in case it didn't already exist |
font__ | Return-by-reference for the font pref identified by key_ |
|
virtual |
Similar to getNumberPref(), except that, if the pref does not already exist, it will be created anew with a default value.
key_ | UTF-8 name/key of the number to get from the top-level and return as a neatly-packed PrefData subclass |
default_ | Default integer value for the pref, in case it didn't already exist |
n__ | Return-by-reference for the number pref identified by key_ |
|
virtual |
Similar to getPathStyleMapPref(), except that, if the member does not already exist, it will be created anew with a default value.
key_ | UTF8 name/key of the path style map to get from the top-level and return as a neatly-packed PrefData subclass |
default_ | Default value for the member, in case it didn't already exist |
c__ | Return-by-reference for the path style map member identified by key_ (or created anew) |
|
virtual |
Similar to getPathStylePref(), except that, if the member does not already exist, it will be created anew with a default value.
key_ | UTF8 name/key of the path style to get from the top-level and return as a neatly-packed PrefData subclass |
default_ | Default value for the member, in case it didn't already exist |
c__ | Return-by-reference for the path style member identified by key_ (or created anew) |
|
virtual |
Similar to getPointPref(), except that, if the pref does not already exist, it will be created anew with a default value.
key_ | UTF-8 name/key of the point to get from the top-level and return as a neatly- packed PrefData subclass |
default_ | Default value for the pref, in case it didn't already exist |
p__ | Return-by-reference for the point pref identified by key_ |
|
virtual |
Similar to getRectPref(), except that, if the pref does not already exist, it will be created anew with a default value.
key_ | UTF-8 name/key of the rect to get from the top-level and return as a neatly- packed PrefData subclass |
default_ | Default value for the pref, in case it didn't already exist |
r__ | Return-by-reference for the rect pref identified by key_ |
|
virtual |
Similar to getSizePref(), except that, if the pref does not already exist, it will be created anew with a default value.
key_ | UTF-8 name/key of the size to get from the top-level and return as a neatly- packed PrefData subclass |
default_ | Default value for the pref, in case it didn't already exist |
s__ | Return-by-reference for the size pref identified by key_ |
|
virtual |
Similar to getStringPref(), except that, if the pref does not already exist, it will be created anew with a default value.
key_ | UTF-8 name/key of the string to get from the top-level and return as a neatly-packed PrefData subclass |
default_ | Default UTF-8 value for the pref, in case it didn't already exist |
str__ | Return-by-reference for the string pref identified by key_ |
|
virtual |
Similar to getStrokeStyleMapPref(), except that, if the member does not already exist, it will be created anew with a default value.
key_ | UTF8 name/key of the stroke style map to get from the top-level and return as a neatly-packed PrefData subclass |
default_ | Default value for the member, in case it didn't already exist |
c__ | Return-by-reference for the stroke style map member identified by key_ (or created anew) |
|
virtual |
Similar to getStrokeStylePref(), except that, if the member does not already exist, it will be created anew with a default value.
key_ | UTF8 name/key of the stroke style to get from the top-level and return as a neatly-packed PrefData subclass |
default_ | Default value for the member, in case it didn't already exist |
c__ | Return-by-reference for the stroke style member identified by key_ (or created anew) |
|
virtual |
Similar to getTransformMatrixPref(), except that, if the pref does not already exist, it will be created anew with a default value.
key_ | UTF-8 name/key of the matrix to get from the top-level and return as a neatly-packed PrefData subclass |
default_ | Default value for the pref, in case it didn't already exist |
tm__ | Return-by-reference for the transform matrix pref identified by key_ |
|
virtual |
Gets a persistent path style map object from the prefs data tree.
key_ | UTF-8 name/key of the path style map to get from the top-level and return as a neatly-packed PrefData subclass |
ds__ | Return-by-reference for the path style map member identified by key_ |
|
virtual |
Gets a persistent path style object from the prefs data tree.
key_ | UTF-8 name/key of the path style to get from the top-level and return as a neatly-packed PrefData subclass |
ds__ | Return-by-reference for the path style member identified by key_ |
|
virtual |
Gets a point pref from the prefs data tree.
key_ | UTF-8 name/key of the point to get from the top-level and return as a neatly- packed PrefData subclass |
p__ | Return-by-reference for the point pref identified by key_ |
|
virtual |
Gets a single preference object from the prefs data tree.
key_ | Name of the member to get from the top-level of the prefs data tree, as UTF-8 |
pref__ | Return-by-reference for the preference found with the given name |
|
virtual |
Gets a rect pref from the prefs data tree.
key_ | UTF-8 name/key of the rect to get from the top-level and return as a neatly- packed PrefData subclass |
r__ | Return-by-reference for the rectangle pref identified by key_ |
|
virtual |
Gets a size pref from the prefs data tree.
key_ | UTF-8 name/key of the size to get from the top-level and return as a neatly- packed PrefData subclass |
s__ | Return-by-reference for the size pref identified by key_ |
|
virtual |
Gets a string pref from the prefs data tree.
key_ | UTF-8 name/key of the string to get from the top-level and return as a neatly- packed PrefData subclass |
str__ | Return-by-reference for the string pref identified by key_ |
|
virtual |
Gets a persistent stroke style map object from the prefs data tree.
key_ | UTF-8 name/key of the stroke style map to get from the top-level and return as a neatly-packed PrefData subclass |
ds__ | Return-by-reference for the stroke style map member identified by key_ |
|
virtual |
Gets a persistent stroke style object from the prefs data tree.
key_ | UTF-8 name/key of the stroke style to get from the top-level and return as a neatly-packed PrefData subclass |
ds__ | Return-by-reference for the stroke style member identified by key_ |
|
virtual |
Gets a transform matrix pref from the prefs data tree.
key_ | UTF-8 name/key of the matrix to get from the top-level and return as a neatly- packed PrefData subclass |
tm__ | Return-by-reference for the transform matrix pref identified by key_ |
|
virtual |
Gets whether the target Preferences object is empty (constructed with the default ctor)
|
static |
Convenience method to create a Preferences object from JSON data in a file.
path_ | Path to the preferences file, as UTF-8 |
prefs__ | Return-by-reference for the Preferences object for the file located at path_ |
|
virtual |
Assigns one Preferences object to another.
rhs_ | Existing Preferences object to copy values from |
|
virtual |
Reloads the preferences data from disk (as it is kept in memory at runtime, this might be necessary if another process or plugin manipulates the file)
path_ | Path to the preferences file, as UTF-8 |
|
virtual |
Removes a preference from the prefs data tree.
pref_ | Object for the pref to remove from the top-level of the prefs data tree |
|
virtual |
Writes JSON preferences data to a file.
path_ | Path to the preferences file, as UTF-8 |
|
virtual |
Gets the save count of the prefs file.
|
virtual |
Sets the number version for the preferences data.
version_ | New number version value |
|
virtual |
Sets the version string for the preferences data.
version_ | New string version value |
|
virtual |
Gets the number version for the preferences data.
|
virtual |
Gets the version string for the preferences data.