/*
* SchemaModelGroup.h
* Copyright (c) 2011 Antillia.com TOSHIYUKI ARAI. ALL RIGHTS RESERVED.
*/
// SOL9
// 2011/02/06
#pragma once
#include <sol/xml/SchemaParticle.h>
namespace SOL {
class SchemaModelGroup : public SchemaParticle
{
public:
SchemaModelGroup(MSXML2::ISchemaModelGroupPtr pGroup)
:SchemaParticle((MSXML2::ISchemaParticlePtr)pGroup)
{
}
public:
MSXML2::ISchemaModelGroupPtr getGroupPtr()
{
return(MSXML2::ISchemaModelGroupPtr)SchemaParticle::getParticlePtr();
}
public:
MSXML2::ISchemaItemCollectionPtr getParticles()
{
return getGroupPtr()->Getparticles();
}
public:
void display(const TCHAR* name=NULL)
{
if (name == NULL) {
name = _T("SchemaModelGroup");
}
_tprintf(_T("<%s>\n"), name);
try {
SchemaItemCollection pCollection = getParticles();
pCollection.display(_T("Particle"));
} catch (...) {
}
_tprintf(_T("</%s>\n"), name);
}
};
}
|