#include "geometryCacheBlockBase.h"
#include <maya/MIffTag.h>
geometryCacheBlockBase::geometryCacheBlockBase()
{
blockTag = "";
group = false;
}
geometryCacheBlockBase::geometryCacheBlockBase(
const MString& tag )
: blockTag(tag)
{
if( tag == "CACH" ||
tag == "/CACH" ||
tag == "MYCH" ||
tag == "/MYCH" )
group = true;
else
group = false;
}
geometryCacheBlockBase::~geometryCacheBlockBase()
{
}
const bool& geometryCacheBlockBase::isGroup()
{
return group;
}
const MString& geometryCacheBlockBase::tag()
{
return blockTag;
}
void geometryCacheBlockBase::outputToAscii( ostream& os )
{
if( !group )
tabs = "\t";
os << tabs << "[" << blockTag << "]\n";
}