Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#ifndef COMPOSITESTATUS_H
Toshihiro Shimizu 890ddd
#define COMPOSITESTATUS_H
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
/*****************************************************************************\
Toshihiro Shimizu 890ddd
*                                                                             *
Toshihiro Shimizu 890ddd
*                           Author Fabrizio Morciano                          *
Toshihiro Shimizu 890ddd
*                                                                             *
Toshihiro Shimizu 890ddd
\*****************************************************************************/
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#include "tcommon.h"
Toshihiro Shimizu 890ddd
#include "tstroke.h"
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#undef DVAPI
Toshihiro Shimizu 890ddd
#undef DVVAR
Toshihiro Shimizu 890ddd
#ifdef TNZEXT_EXPORTS
Toshihiro Shimizu 890ddd
#define DVAPI DV_EXPORT_API
Toshihiro Shimizu 890ddd
#define DVVAR DV_EXPORT_VAR
Toshihiro Shimizu 890ddd
#else
Toshihiro Shimizu 890ddd
#define DVAPI DV_IMPORT_API
Toshihiro Shimizu 890ddd
#define DVVAR DV_IMPORT_VAR
Toshihiro Shimizu 890ddd
#endif
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#include <vector></vector>
Toshihiro Shimizu 890ddd
#include <string></string>
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
namespace ToonzExt
Toshihiro Shimizu 890ddd
{
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
/**
Toshihiro Shimizu 890ddd
   * This class mantains interal data for Dragger manipulator.
Toshihiro Shimizu 890ddd
   */
Toshihiro Shimizu 890ddd
class DVAPI
Toshihiro Shimizu 890ddd
	CompositeStatus
Toshihiro Shimizu 890ddd
{
Toshihiro Shimizu 890ddd
private:
Toshihiro Shimizu 890ddd
	std::map
Toshihiro Shimizu 890ddd
			 CompositeStatus *> *dbImpl_;
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
	std::map
Toshihiro Shimizu 890ddd
			 CompositeStatus *> &db_;
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
	typedef std::map
Toshihiro Shimizu 890ddd
					 CompositeStatus *>::iterator iterator;
Toshihiro Shimizu 890ddd
	typedef std::map
Toshihiro Shimizu 890ddd
					 CompositeStatus *>::const_iterator const_iterator;
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
public:
Toshihiro Shimizu 890ddd
	CompositeStatus();
Toshihiro Shimizu 890ddd
	virtual ~CompositeStatus();
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
	void
Toshihiro Shimizu 890ddd
	add(CompositeStatus *,
Toshihiro Shimizu 890ddd
		const std::string &name);
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
	void
Toshihiro Shimizu 890ddd
	remove(const std::string &name);
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
	CompositeStatus *
Toshihiro Shimizu 890ddd
	find(const std::string &name) const;
Toshihiro Shimizu 890ddd
};
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//---------------------------------------------------------------------------
Toshihiro Shimizu 890ddd
}
Toshihiro Shimizu 890ddd
#endif /* COMPOSITESTATUS_H */