HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PRM_Default Class Reference

#include <PRM_Default.h>

Public Member Functions

 PRM_Default (fpreal thefloat=0, const char *thestring=0, CH_StringMeaning string_meaning=CH_STRING_LITERAL)
 
fpreal getFloat () const
 
int getOrdinal () const
 
bool gotString () const
 
const char * getString () const
 
CH_StringMeaning getStringMeaning () const
 
void set (fpreal thefloat, const char *thestring, CH_StringMeaning string_meaning)
 
void setFloat (fpreal v)
 
void setOrdinal (int v)
 
void setString (const char *v, bool free_existing=false)
 
void setStringMeaning (CH_StringMeaning string_meaning)
 
int64 getMemoryUsage (bool inclusive) const
 

Detailed Description

Constructor & Destructor Documentation

PRM_Default::PRM_Default ( fpreal  thefloat = 0,
const char *  thestring = 0,
CH_StringMeaning  string_meaning = CH_STRING_LITERAL 
)

PRM_Default has two parts: a float and a string. For floating point parameters, if the default string is defined, then the parameter will start off being animated and have the channel expression defined by the string. Otherwise, the floating point default is used for float and integer types, while the string is used to initialize string types.

Member Function Documentation

fpreal PRM_Default::getFloat ( ) const
inline

Definition at line 54 of file PRM_Default.h.

int64 PRM_Default::getMemoryUsage ( bool  inclusive) const
inline

NOTE: Based on the lack of destructor, PRM_Default does NOT own *myString, but ownership semantics are bonkers in these mysterious lands of PRM.

Definition at line 72 of file PRM_Default.h.

int PRM_Default::getOrdinal ( ) const
inline

Definition at line 55 of file PRM_Default.h.

const char* PRM_Default::getString ( ) const
inline

Definition at line 57 of file PRM_Default.h.

CH_StringMeaning PRM_Default::getStringMeaning ( ) const
inline

Definition at line 58 of file PRM_Default.h.

bool PRM_Default::gotString ( ) const
inline

Definition at line 56 of file PRM_Default.h.

void PRM_Default::set ( fpreal  thefloat,
const char *  thestring,
CH_StringMeaning  string_meaning 
)
void PRM_Default::setFloat ( fpreal  v)
inline

Definition at line 64 of file PRM_Default.h.

void PRM_Default::setOrdinal ( int  v)
inline

Definition at line 65 of file PRM_Default.h.

void PRM_Default::setString ( const char *  v,
bool  free_existing = false 
)
void PRM_Default::setStringMeaning ( CH_StringMeaning  string_meaning)

The documentation for this class was generated from the following file: