AComplexCollectionElementCol.h
In This Topic
#ifndef _CardinalityLib_CardinalityLib_CAComplexCollectionElementCol_h
#define _CardinalityLib_CardinalityLib_CAComplexCollectionElementCol_h
namespace CardinalityLib
{
class CardinalityLib_DLL CAComplexCollectionElementCol : public CardinalityLib::CXmlCollectionCommonBase, CInstanceMonitor
{
protected:
CAComplexCollectionElementCol(LPCTSTR lpctElementName, LPCTSTR lpctNamespaceUri, int minOccurs, int maxOccurs);
public:
CardinalityLib::CAComplexCollectionElementPtr Add();
void Add(CardinalityLib::CAComplexCollectionElement* pCls);
void AddAt(int index, CardinalityLib::CAComplexCollectionElement* pCls);
CardinalityLib::CAComplexCollectionElementPtr Item(int index) const;
void Remove(CardinalityLib::CAComplexCollectionElement* pCls);
typedef LtXmlLib20::CLtIterator<CardinalityLib::CAComplexCollectionElement> iterator;
typedef LtXmlLib20::CLtConstIterator<CardinalityLib::CAComplexCollectionElement> const_iterator;
iterator begin();
iterator end();
protected:
virtual void ToXml_Int( LtXmlLib20::CXmlWriter* pXmlOut, bool bRegisterNamespaces, LPCTSTR lpctNamespaceUri, const LtXmlLib20::CSerializationContext& context, bool isOptionalChoice) const;
virtual LtXmlLib20::CXmlElement* FromXml_Int( LtXmlLib20::CXmlElement* pXmlParent, LtXmlLib20::CXmlElement* pXmlChild, const LtXmlLib20::CSerializationContext& context, bool isOptionalChoice);
friend class CardinalityLib::CClassFactory;
};
};
#endif