/*
 * Copyright (c) 1999 Johnny C. Lam.
 * All rights reserved.
 *
 * Permission to use, copy, modify, distribute and sell this software
 * and its documentation for any purpose is hereby granted without fee,
 * provided that the above copyright notice appear in all copies and
 * that both that copyright notice and this permission notice appear
 * in supporting documentation.  The author makes no representations
 * about the suitability of this software for any purpose.  It is
 * provided "as is" without express or implied warranty.
 */

/* -*- C++ -*- */

#ifndef SEGMENT_PROBABILITY_FACTORY_H
#define SEGMENT_PROBABILITY_FACTORY_H

#ifndef STD_MEMORY_INCLUDED
#include <memory>
#define STD_MEMORY_INCLUDED
#endif

#ifndef DP_SINGLETON_INCLUDED
#include <singleton>
#define DP_SINGLETON_INCLUDED
#endif

#ifndef STD_STRING_INCLUDED
#include <string>
#define STD_STRING_INCLUDED
#endif

#ifndef SEGMENT_H_INCLUDED
#include "segment.h"
#endif

class SegmentProbabilityFactory : public Singleton<SegmentProbabilityFactory> {
public:
    typedef string choice_type;

    static const choice_type LONGEST;
    static const choice_type INDEPENDENT;

public:
    auto_ptr<SegmentProbability> Make(choice_type, bool = false) const;
};

#endif /* SEGMENT_PROBABILITY_FACTORY_H */
