Additional Inherited Members |
static void | registerType (const Object &defaultObject) |
| Register an instance of a class; if the class is already registered it
will be replaced.
|
static void | renameType (const std::string &oldTypeName, const std::string &newTypeName) |
| Support versioning by associating the current %Object type with an
old name.
|
static const Object * | getDefaultInstanceOfType (const std::string &concreteClassName) |
| Return a pointer to the default instance of the registered (concrete)
Object whose class name is given, or NULL if the type is not registered.
|
template<class T > |
static bool | isObjectTypeDerivedFrom (const std::string &concreteClassName) |
| Return true if the given concrete object type represents a subclass of
the template object type T, and thus could be referenced with a T*.
|
static Object * | newInstanceOfType (const std::string &concreteClassName) |
| Create a new instance of the concrete %Object type whose class name is
given as concreteClassName.
|
static void | getRegisteredTypenames (Array< std::string > &typeNames) |
| Retrieve all the typenames registered so far.
|
template<class T > |
static void | getRegisteredObjectsOfGivenType (ArrayPtrs< T > &rArray) |
| Return an array of pointers to the default instances of all registered
(concrete) Object types that derive from a given Object-derived type that does not have to be concrete.
|
static void | PrintPropertyInfo (std::ostream &os, const std::string &classNameDotPropertyName) |
| Dump formatted property information to a given output stream, useful
for creating a "help" facility for registered objects.
|
static void | PrintPropertyInfo (std::ostream &os, const std::string &className, const std::string &propertyName) |
| Same as the other signature but the class name and property name are
provided as two separate strings.
|
static Object * | makeObjectFromFile (const std::string &fileName) |
| Create an %OpenSim object whose type is based on the tag at the root
node of the XML file passed in.
|
static const std::string & | getClassName () |
| Return the name of this class as a string; i.e., "Object".
|
static void | setSerializeAllDefaults (bool shouldSerializeDefaults) |
| Static function to control whether all registered objects and
their properties are written to the defaults section of output files rather than only those values for which the default was explicitly overwritten when read in from an input file or set programmatically.
|
static bool | getSerializeAllDefaults () |
| Report the value of the "serialize all defaults" flag.
|
static bool | isKindOf (const char *type) |
| Returns true if the passed-in string is "Object"; each %Object-derived
class defines a method of this name for its own class name.
|
static void | setDebugLevel (int newLevel) |
| Set the debug level to get verbose output.
|
static int | getDebugLevel () |
| Get current setting of debug level.
|
static Object * | SafeCopy (const Object *aObject) |
| Use the clone() method to duplicate the given object unless the pointer
is null in which case null is returned.
|
static void | RegisterType (const Object &defaultObject) |
| OBSOLETE alternate name for registerType().
|
static void | RenameType (const std::string &oldName, const std::string &newName) |
| OBSOLETE alternate name for renameType().
|
int | _numControls |
| number of controls this controller computes
|
static const std::string | DEFAULT_NAME |
| Name used for default objects when they are serialized.
|
#define | OpenSim_DECLARE_CONCRETE_OBJECT(ConcreteClass, SuperClass) |
| Macro to be included as the first line of the class declaration for
any non-templatized, concrete class that derives from OpenSim::Object.
|
#define | OpenSim_DECLARE_ABSTRACT_OBJECT(ConcreteClass, SuperClass) |
| Macro to be included as the first line of the class declaration for
any still-abstract class that derives from OpenSim::Object.
|
#define | OpenSim_DECLARE_CONCRETE_OBJECT_T(ConcreteClass, TArg, SuperClass) |
| Macro to be included as the first line of the class declaration for
any templatized, concrete class that derives from OpenSim::Object, like Set<T>.
|
#define | OpenSim_DECLARE_ABSTRACT_OBJECT_T(ConcreteClass, TArg, SuperClass) |
| Macro to be included as the first line of the class declaration for
any templatized, still-abstract class that derives from OpenSim::Object.
|