57 virtual bool hasProperty (
const Identifier& propertyName)
const;
62 virtual const var& getProperty (
const Identifier& propertyName)
const;
65 virtual void setProperty (
const Identifier& propertyName,
const var& newValue);
68 virtual void removeProperty (
const Identifier& propertyName);
77 virtual bool hasMethod (
const Identifier& methodName)
const;
96 void setMethod (
Identifier methodName, var::NativeFunction
function);
106 void cloneAllProperties();
122 virtual void writeAsJSON (
OutputStream&,
int indentLevel,
bool allOnOneLine,
int maximumDecimalPlaces);
128 #if JUCE_CATCH_DEPRECATED_CODE_MISUSE
130 virtual void invokeMethod (
const Identifier&,
const var*,
int) {}
133 JUCE_LEAK_DETECTOR (DynamicObject)
Represents a dynamically implemented object.
NamedValueSet & getProperties() noexcept
Returns the NamedValueSet that holds the object's properties.
Represents a string identifier, designed for accessing properties by name.
Holds a set of named var objects.
The base class for streams that write data to some kind of destination.
A base class which provides methods for reference-counting.
A variant class, that can be used to hold a range of primitive values.
#define JUCE_API
This macro is added to all JUCE public class declarations.
This structure is passed to a NativeFunction callback, and contains invocation details about the func...