xsi_portgroup.h Source File
 
 
 
xsi_portgroup.h
Go to the documentation of this file.
00001 //*****************************************************************************
00011 //*****************************************************************************
00012 
00013 #if (_MSC_VER > 1000) || defined(SGI_COMPILER)
00014 #pragma once
00015 #endif
00016 
00017 #ifndef __XSIPORTGROUP_H__
00018 #define __XSIPORTGROUP_H__
00019 
00020 #include <xsi_siobject.h>
00021 
00022 namespace XSI {
00023 
00024 class ProjectItem;
00025 
00026 //*****************************************************************************
00061 //*****************************************************************************
00062 
00063 class SICPPSDKDECL PortGroup : public SIObject
00064 {
00065 public:
00067         PortGroup();
00068 
00070         ~PortGroup();
00071 
00075         PortGroup(const CRef& in_ref);
00076 
00080         PortGroup(const PortGroup& in_obj);
00081 
00086         bool IsA( siClassID in_ClassID) const;
00087 
00091         siClassID GetClassID() const;
00092 
00098         PortGroup& operator=(const PortGroup& in_obj);
00099 
00105         PortGroup& operator=(const CRef& in_ref);
00106 
00111         bool IsOptional(LONG in_port=-1) const;
00112 
00117         LONG GetIndex() const;
00118 
00123         LONG GetMin() const;
00124 
00129         LONG GetMax() const;
00130 
00135         LONG GetFlags() const;
00136 
00141         CString GetPickPrompt() const;
00142 
00146         CString GetFilter() const;
00147 
00151         CRefArray GetPorts() const;
00152 
00156         LONG GetInstanceCount() const;
00157 
00162         bool SupportsBranchGroup(LONG in_port=-1) const;
00163 
00173         CRef AddInputPort( const CRef& target, const CString& name=CString(), LONG insertat=-1, LONG flags=0, CStatus* pst = 0 );
00174 
00184         CRef AddOutputPort( const CRef& target, const CString& name=CString(), LONG insertat=-1, LONG flags=0, CStatus* pst = 0 );
00185 
00195         CRefArray AddIOPort( const CRef& target, const CString& name=CString(), LONG insertat=-1, LONG flags=0, CStatus* pst = 0 );
00196 
00197         private:
00198         PortGroup * operator&() const;
00199         PortGroup * operator&();
00200 
00201 
00202 };
00203 
00204 };
00205 
00206 #endif // __XSIPORTGROUP_H__