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

#include <PDG_ServiceType.h>

+ Inheritance diagram for PDG_ServiceType:

Public Member Functions

 PDG_ServiceType (const UT_StringHolder &type_name, const UT_StringHolder &type_label, PDG_BaseType::Language language, const UT_StringHolder &command, bool internal_service)
 
const UT_StringHoldercommand () const
 
bool isInternal () const
 
bool initialize (UT_WorkBuffer &errors) override
 
- Public Member Functions inherited from PDGT_RegisteredType< Class, Pointer, EnumType, Type, Args >
 PDGT_RegisteredType (const UT_StringHolder &name, const UT_StringHolder &label, typename PDGT_BaseType< EnumType >::Language lang, bool track_instances)
 
 ~PDGT_RegisteredType () override
 
Pointer instance (UT_WorkBuffer &errors, const PDGT_ValueArgs &extra_args, Args...args) const
 
bool reloadInstance (UT_WorkBuffer &errors, const PDGT_ValueArgs &extra_args, Class *instance, Args...args) const
 
bool reloadType (UT_WorkBuffer &errors)
 
int64 instanceMemoryUsage () const override
 Returns the combined memory usage of all instances of this type. More...
 
void setFunction (const Function &function)
 Sets the factory function to use when contructing Class instances. More...
 
void setIsPrivate (bool is_private)
 Sets the isPrivate flag. More...
 
bool isPrivate () const
 Returns true if the type is private. More...
 
- Public Member Functions inherited from PDGT_BaseType< EnumType >
 PDGT_BaseType (const UT_StringHolder &type_name, const UT_StringHolder &type_label, Language lang, EnumType reg_type)
 
virtual ~PDGT_BaseType ()
 
const UT_StringHoldertypeName () const
 
void setTypeName (const UT_StringHolder &name)
 
const UT_StringHoldertypeLabel () const
 
void setTypeLabel (const UT_StringHolder &label)
 
Language language () const
 
EnumType type () const
 
int instanceCount () const
 
void instanceCreated () const
 
void instanceDestroyed () const
 
bool compareType (const PDGT_BaseType *type, bool deep=true) const
 
void addParent (const PDGT_BaseType *type, bool recurse=true)
 
virtual UT_StringHolder displayName () const
 

Protected Attributes

UT_StringHolder myCommand
 
bool internal
 
- Protected Attributes inherited from PDGT_BaseType< EnumType >
TypeSet myParentTypes
 
UT_StringHolder myTypeName
 
UT_StringHolder myTypeLabel
 
Language myLanguage
 
SYS_AtomicInt32 myInstanceCount
 
EnumType myType
 

Additional Inherited Members

- Public Types inherited from PDGT_RegisteredType< Class, Pointer, EnumType, Type, Args >
using Function = UT_Function< Pointer(const PDGT_BaseType< EnumType > *, UT_WorkBuffer &, const PDGT_ValueArgs &extra_args, Args...)>
 
using Instances = UT_ConcurrentVector< UT_WeakPtr< Class >>
 
- Public Types inherited from PDGT_BaseType< EnumType >
enum  Language { ePython, eCpp }
 
using TypeSet = UT_Set< const PDGT_BaseType * >
 
- Static Public Member Functions inherited from PDGT_RegisteredType< Class, Pointer, EnumType, Type, Args >
template<typename ConcreteType >
static Pointer typeInit (const PDGT_BaseType< EnumType > *type, UT_WorkBuffer &errors, const PDGT_ValueArgs &extra_args, Args...args)
 
- Static Public Attributes inherited from PDGT_RegisteredType< Class, Pointer, EnumType, Type, Args >
static constexpr EnumType Enum = Type
 
- Protected Member Functions inherited from PDGT_RegisteredType< Class, Pointer, EnumType, Type, Args >
template<typename P = Pointer>
std::enable_if< std::is_same
< P, UT_SharedPtr< Class >
>::value >::type 
addInstance (P instance) const
 
template<typename P = Pointer>
std::enable_if<!std::is_same
< P, UT_SharedPtr< Class >
>::value >::type 
addInstance (P instance) const
 
UT_SharedPtr< Class > lockInstance (UT_WeakPtr< Class > instance) const
 
virtual Pointer instantiate (UT_WorkBuffer &errors, const PDGT_ValueArgs &extra_args, Args...variadic_args) const
 
virtual bool reload (UT_WorkBuffer &errors)
 
virtual bool reload (UT_WorkBuffer &errors, const PDGT_ValueArgs &extra_args, Class *instance, Args...variadic_args) const
 

Detailed Description

Definition at line 18 of file PDG_ServiceType.h.

Constructor & Destructor Documentation

PDG_ServiceType::PDG_ServiceType ( const UT_StringHolder type_name,
const UT_StringHolder type_label,
PDG_BaseType::Language  language,
const UT_StringHolder command,
bool  internal_service 
)
inline

Definition at line 26 of file PDG_ServiceType.h.

Member Function Documentation

const UT_StringHolder& PDG_ServiceType::command ( ) const
inline

Definition at line 40 of file PDG_ServiceType.h.

bool PDG_ServiceType::initialize ( UT_WorkBuffer errors)
inlineoverridevirtual

Implements PDGT_BaseType< EnumType >.

Definition at line 44 of file PDG_ServiceType.h.

bool PDG_ServiceType::isInternal ( ) const
inline

Definition at line 42 of file PDG_ServiceType.h.

Member Data Documentation

bool PDG_ServiceType::internal
protected

Definition at line 51 of file PDG_ServiceType.h.

UT_StringHolder PDG_ServiceType::myCommand
protected

Definition at line 50 of file PDG_ServiceType.h.


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