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

#include <OP_OTLDefinition.h>

Public Member Functions

 OP_OTLDefinition ()
 
 OP_OTLDefinition (const OP_OTLDefinition &definition)=default
 
OP_OTLDefinitionoperator= (const OP_OTLDefinition &src)=default
 
const UT_StringHoldergetName () const
 
void setName (const UT_StringHolder &name)
 
const UT_StringHoldergetLabel () const
 
void setLabel (const UT_StringHolder &label)
 
const UT_StringHoldergetPath () const
 
void setPath (const UT_StringHolder &path)
 
const UT_StringHoldergetIcon () const
 
void setIcon (const UT_StringHolder &icon)
 
const UT_StringHoldergetAuthor () const
 
void setAuthor (const UT_StringHolder &author)
 
const UT_StringHoldergetCopyright () const
 
void setCopyright (const UT_StringHolder &copyright)
 
const UT_StringHoldergetOpTableName () const
 
void setOpTableName (const UT_StringHolder &optablename)
 
const UT_StringHoldergetIndexPath () const
 
void setIndexPath (const UT_StringHolder &indexpath)
 
const UT_StringHoldergetIndexFile () const
 
void setIndexFile (const UT_StringHolder &indexfile)
 
const UT_StringHoldergetLicenseInfo () const
 
void setLicenseInfo (const UT_StringHolder &licenseinfo)
 
const UT_StringHoldergetExtraInfo () const
 
void setExtraInfo (const UT_StringHolder &extrainfo)
 
const OP_ExtraInfoBuffergetExtraInfoBuffer () const
 
void setExtraInfoBuffer (const OP_ExtraInfoBuffer &buf)
 
const UT_StringHoldergetUserInfo () const
 
void setUserInfo (const UT_StringHolder &userinfo)
 
int getMinInputs () const
 
void setMinInputs (int inputs)
 
int getMaxInputs () const
 
void setMaxInputs (int inputs)
 
int getNumOrderedInputs () const
 
void setNumOrderedInputs (int inputs)
 
int getMaxOutputs () const
 
void setMaxOutputs (int outputs)
 
time_t getModTime () const
 
void setModTime (time_t modtime)
 
bool getIsSubnet () const
 
void setIsSubnet (bool issubnet)
 
bool getIsPython () const
 
void setIsPython (bool ispython)
 
bool getIsDummyDefinition () const
 
void setIsDummyDefinition (bool isdummy)
 
OP_OTLLicenseType getCachedLicenseType () const
 
void setCachedLicenseType (OP_OTLLicenseType type)
 
bool isInternal () const
 Return if this is an internally defined operator. More...
 
void setPathToInternal ()
 Mark as internal. More...
 
int handleOption (int argc, char *argv[])
 
void getTableAndName (UT_WorkBuffer &name) const
 
void getTableAndName (UT_String &name) const
 
OP_OpTypeId getOpTypeId () const
 
bool load (UT_IStream &is, UT_StringHolder *errors=nullptr)
 
bool save (std::ostream &os)
 
void writeTextDescription (UT_WorkBuffer &buffer, const char *indent=0) const
 
void writeFormattedText (UT_WorkBuffer &buffer, const char *format) const
 
bool readTextDescription (UT_IStream &is)
 
void constructDefinitionPath (UT_String &path) const
 
void getDefinitionSectionName (UT_String &sectname) const
 
void getDefinitionSectionName (UT_WorkBuffer &sectname) const
 

Static Public Member Functions

static time_t getModTimeFromString (const char *str)
 Utility function for converting a string to a modification time. More...
 
static bool isValidOperatorName (const char *name)
 
static bool isMatchingNamespaceScope (const char *op_name, const char *scope_opname)
 

Detailed Description

Definition at line 158 of file OP_OTLDefinition.h.

Constructor & Destructor Documentation

OP_OTLDefinition::OP_OTLDefinition ( )
OP_OTLDefinition::OP_OTLDefinition ( const OP_OTLDefinition definition)
default

Member Function Documentation

void OP_OTLDefinition::constructDefinitionPath ( UT_String path) const

Returns an official file path that should be used for a given definition, eg "oplib:/Object/hda?Object/hda".

const UT_StringHolder& OP_OTLDefinition::getAuthor ( ) const
inline

Definition at line 182 of file OP_OTLDefinition.h.

OP_OTLLicenseType OP_OTLDefinition::getCachedLicenseType ( ) const
inline

Definition at line 261 of file OP_OTLDefinition.h.

const UT_StringHolder& OP_OTLDefinition::getCopyright ( ) const
inline

Definition at line 186 of file OP_OTLDefinition.h.

void OP_OTLDefinition::getDefinitionSectionName ( UT_String sectname) const

Returns an official name of the library section that contains the HDA definition eg "Object/hda", or "artistA::Object/hda::2.0". See UT_OpUtils::getOpTypeDefSectionName() for more details.

void OP_OTLDefinition::getDefinitionSectionName ( UT_WorkBuffer sectname) const

Returns an official name of the library section that contains the HDA definition eg "Object/hda", or "artistA::Object/hda::2.0". See UT_OpUtils::getOpTypeDefSectionName() for more details.

const UT_StringHolder& OP_OTLDefinition::getExtraInfo ( ) const
inline

Extra operator info. This is stored as a raw string in the OTL as the myExtraInfo. The parsed version of the string is kept in sync as myExtraInfoBuffer.

Definition at line 210 of file OP_OTLDefinition.h.

const OP_ExtraInfoBuffer& OP_OTLDefinition::getExtraInfoBuffer ( ) const
inline

Definition at line 216 of file OP_OTLDefinition.h.

const UT_StringHolder& OP_OTLDefinition::getIcon ( ) const
inline

Definition at line 178 of file OP_OTLDefinition.h.

const UT_StringHolder& OP_OTLDefinition::getIndexFile ( ) const
inline

Definition at line 198 of file OP_OTLDefinition.h.

const UT_StringHolder& OP_OTLDefinition::getIndexPath ( ) const
inline

Definition at line 194 of file OP_OTLDefinition.h.

bool OP_OTLDefinition::getIsDummyDefinition ( ) const
inline

Definition at line 257 of file OP_OTLDefinition.h.

bool OP_OTLDefinition::getIsPython ( ) const
inline

Definition at line 253 of file OP_OTLDefinition.h.

bool OP_OTLDefinition::getIsSubnet ( ) const
inline

Definition at line 249 of file OP_OTLDefinition.h.

const UT_StringHolder& OP_OTLDefinition::getLabel ( ) const
inline

Definition at line 170 of file OP_OTLDefinition.h.

const UT_StringHolder& OP_OTLDefinition::getLicenseInfo ( ) const
inline

Definition at line 202 of file OP_OTLDefinition.h.

int OP_OTLDefinition::getMaxInputs ( ) const
inline

Definition at line 233 of file OP_OTLDefinition.h.

int OP_OTLDefinition::getMaxOutputs ( ) const
inline

Definition at line 241 of file OP_OTLDefinition.h.

int OP_OTLDefinition::getMinInputs ( ) const
inline

Definition at line 229 of file OP_OTLDefinition.h.

time_t OP_OTLDefinition::getModTime ( ) const
inline

Definition at line 245 of file OP_OTLDefinition.h.

static time_t OP_OTLDefinition::getModTimeFromString ( const char *  str)
static

Utility function for converting a string to a modification time.

const UT_StringHolder& OP_OTLDefinition::getName ( ) const
inline

Definition at line 166 of file OP_OTLDefinition.h.

int OP_OTLDefinition::getNumOrderedInputs ( ) const
inline

Definition at line 237 of file OP_OTLDefinition.h.

const UT_StringHolder& OP_OTLDefinition::getOpTableName ( ) const
inline

Definition at line 190 of file OP_OTLDefinition.h.

OP_OpTypeId OP_OTLDefinition::getOpTypeId ( ) const
const UT_StringHolder& OP_OTLDefinition::getPath ( ) const
inline

Definition at line 174 of file OP_OTLDefinition.h.

void OP_OTLDefinition::getTableAndName ( UT_WorkBuffer name) const
void OP_OTLDefinition::getTableAndName ( UT_String name) const
const UT_StringHolder& OP_OTLDefinition::getUserInfo ( ) const
inline

Definition at line 225 of file OP_OTLDefinition.h.

int OP_OTLDefinition::handleOption ( int  argc,
char *  argv[] 
)
bool OP_OTLDefinition::isInternal ( ) const
inline

Return if this is an internally defined operator.

Definition at line 267 of file OP_OTLDefinition.h.

static bool OP_OTLDefinition::isMatchingNamespaceScope ( const char *  op_name,
const char *  scope_opname 
)
static

Returns true if op_name includes a namespace and that namesapce matches the given scope_opname, e.g., op_name of "Object/geo::op" matches scope_name of "Object/geo". If op_name does not include a namespace, it is allowed everywhere, so it will match any scope, thus this function will return true. Returns false otherwise.

static bool OP_OTLDefinition::isValidOperatorName ( const char *  name)
static

Returns true if the name is a valid operator name that can be used for an OP_Operator instance.

bool OP_OTLDefinition::load ( UT_IStream is,
UT_StringHolder errors = nullptr 
)
OP_OTLDefinition& OP_OTLDefinition::operator= ( const OP_OTLDefinition src)
default
bool OP_OTLDefinition::readTextDescription ( UT_IStream is)
bool OP_OTLDefinition::save ( std::ostream &  os)
void OP_OTLDefinition::setAuthor ( const UT_StringHolder author)
inline

Definition at line 184 of file OP_OTLDefinition.h.

void OP_OTLDefinition::setCachedLicenseType ( OP_OTLLicenseType  type)
inline

Definition at line 263 of file OP_OTLDefinition.h.

void OP_OTLDefinition::setCopyright ( const UT_StringHolder copyright)
inline

Definition at line 188 of file OP_OTLDefinition.h.

void OP_OTLDefinition::setExtraInfo ( const UT_StringHolder extrainfo)
inline

Definition at line 212 of file OP_OTLDefinition.h.

void OP_OTLDefinition::setExtraInfoBuffer ( const OP_ExtraInfoBuffer buf)
inline

Definition at line 218 of file OP_OTLDefinition.h.

void OP_OTLDefinition::setIcon ( const UT_StringHolder icon)
inline

Definition at line 180 of file OP_OTLDefinition.h.

void OP_OTLDefinition::setIndexFile ( const UT_StringHolder indexfile)
inline

Definition at line 200 of file OP_OTLDefinition.h.

void OP_OTLDefinition::setIndexPath ( const UT_StringHolder indexpath)
inline

Definition at line 196 of file OP_OTLDefinition.h.

void OP_OTLDefinition::setIsDummyDefinition ( bool  isdummy)
inline

Definition at line 259 of file OP_OTLDefinition.h.

void OP_OTLDefinition::setIsPython ( bool  ispython)
inline

Definition at line 255 of file OP_OTLDefinition.h.

void OP_OTLDefinition::setIsSubnet ( bool  issubnet)
inline

Definition at line 251 of file OP_OTLDefinition.h.

void OP_OTLDefinition::setLabel ( const UT_StringHolder label)
inline

Definition at line 172 of file OP_OTLDefinition.h.

void OP_OTLDefinition::setLicenseInfo ( const UT_StringHolder licenseinfo)
inline

Definition at line 204 of file OP_OTLDefinition.h.

void OP_OTLDefinition::setMaxInputs ( int  inputs)
inline

Definition at line 235 of file OP_OTLDefinition.h.

void OP_OTLDefinition::setMaxOutputs ( int  outputs)
inline

Definition at line 243 of file OP_OTLDefinition.h.

void OP_OTLDefinition::setMinInputs ( int  inputs)
inline

Definition at line 231 of file OP_OTLDefinition.h.

void OP_OTLDefinition::setModTime ( time_t  modtime)
inline

Definition at line 247 of file OP_OTLDefinition.h.

void OP_OTLDefinition::setName ( const UT_StringHolder name)
inline

Definition at line 168 of file OP_OTLDefinition.h.

void OP_OTLDefinition::setNumOrderedInputs ( int  inputs)
inline

Definition at line 239 of file OP_OTLDefinition.h.

void OP_OTLDefinition::setOpTableName ( const UT_StringHolder optablename)
inline

Definition at line 192 of file OP_OTLDefinition.h.

void OP_OTLDefinition::setPath ( const UT_StringHolder path)
inline

Definition at line 176 of file OP_OTLDefinition.h.

void OP_OTLDefinition::setPathToInternal ( )
inline

Mark as internal.

Definition at line 271 of file OP_OTLDefinition.h.

void OP_OTLDefinition::setUserInfo ( const UT_StringHolder userinfo)
inline

Definition at line 227 of file OP_OTLDefinition.h.

void OP_OTLDefinition::writeFormattedText ( UT_WorkBuffer buffer,
const char *  format 
) const
void OP_OTLDefinition::writeTextDescription ( UT_WorkBuffer buffer,
const char *  indent = 0 
) const

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