Main Page   Class Hierarchy   Compound List   File List   Header Files   Sources   Compound Members   File Members  

format.h

This is the verbatim text of the format.h include file.
/*
********************************************************************************
* Copyright © {1997-1999}, International Business Machines Corporation and others. All Rights Reserved.
********************************************************************************
*
* File FORMAT.H
*
* Modification History:
*
*   Date        Name        Description
*   02/19/97    aliu        Converted from java.
*   03/17/97    clhuang     Updated per C++ implementation.
*   03/27/97    helena      Updated to pass the simple test after code review.
********************************************************************************
*/
// *****************************************************************************
// This file was generated from the java source file Format.java
// *****************************************************************************
 
#ifndef FORMAT_H
#define FORMAT_H
 

#include "unicode/utypes.h"
#include "unicode/unistr.h"
#include "unicode/fmtable.h"
#include "unicode/fieldpos.h"
#include "unicode/parsepos.h"

class U_I18N_API Format {
public:

    virtual ~Format();

    virtual UBool operator==(const Format& other) const = 0;

    UBool operator!=(const Format& other) const { return !operator==(other); }

    virtual Format* clone() const = 0;

    UnicodeString& format(const Formattable& obj,
                          UnicodeString& result,
                          UErrorCode& status) const;

    virtual UnicodeString& format(const Formattable& obj,
                                  UnicodeString& toAppendTo,
                                  FieldPosition& pos,
                                  UErrorCode& status) const = 0;

    virtual void parseObject(const UnicodeString& source,
                             Formattable& result,
                             ParsePosition& parse_pos) const = 0;

    void parseObject(const UnicodeString& source,
                     Formattable& result,
                     UErrorCode& status) const;

    virtual UClassID getDynamicClassID() const = 0;

protected:
    Format();

    Format(const Format&); // Does nothing; for subclasses only

    Format& operator=(const Format&); // Does nothing; for subclasses
};

#endif // _FORMAT
//eof

Generated at Wed Aug 16 16:05:45 2000 for ICU1.6 by doxygen 1.0.0 written by Dimitri van Heesch, © 1997-1999