/**
 * 最初の著者:: トゥイー
 * リポジトリ情報:: $Id: GrammarPhrase.hpp 44 2011-05-16 10:36:43Z yutaka_at_home $
 * 著作権:: Copyright (C) Ownway.info, 2011. All rights reserved.
 * ライセンス:: CPL(Common Public Licence)
 */

#ifndef _SPEECH_CONTROLLER_FRAMEWORK_CORE_GRAMMAR_PHRASE_HPP_
#define _SPEECH_CONTROLLER_FRAMEWORK_CORE_GRAMMAR_PHRASE_HPP_

#include <string>

namespace spcf {

	class GrammarPhrase_i;

	class GrammarPhrase {
	private:
		GrammarPhrase_i *impl;

	public:
		GrammarPhrase();
		virtual ~GrammarPhrase();

	private:
		GrammarPhrase(const GrammarPhrase& phrase);
		GrammarPhrase& operator=(const GrammarPhrase& phrase);

	public:
		GrammarPhrase(const std::string& phrase);
		GrammarPhrase(const std::string& phrase, const std::string& name);
		GrammarPhrase(const std::string& phrase, const std::string& name, int val);
		GrammarPhrase(const std::string& phrase, const std::string& name, const std::string& valStr);
		GrammarPhrase(const std::string& phrase, const std::string& name, int val, const std::string& valStr);

	public:
		const std::string& getPhrase() const;

		bool hasProperty() const;

		const std::string& getPropertyName() const;

		bool hasPropertyInt() const;

		const int& getPropertyInt() const;

		bool hasPropertyString() const;

		const std::string& getPropertyString() const;
	};

}  // namespace spcf

#endif
