stlab.adobe.com Adobe Systems Incorporated

platform_number_formatter_data.hpp

Go to the documentation of this file.
00001 /*
00002     Copyright 2005-2007 Adobe Systems Incorporated
00003     Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt
00004     or a copy at http://stlab.adobe.com/licenses.html)
00005 */
00006 
00007 /****************************************************************************************************/
00008 
00009 #ifndef ADOBE_NUMBER_FORMATTER_IMPL_HPP
00010 #define ADOBE_NUMBER_FORMATTER_IMPL_HPP
00011 
00012 /****************************************************************************************************/
00013 
00014 #define WINDOWS_LEAN_AND_MEAN 1
00015 
00016 #include <string>
00017 
00018 #include <windows.h>
00019 
00020 #include <adobe/any_regular.hpp>
00021 #include <adobe/dictionary.hpp>
00022 
00023 /****************************************************************************************************/
00024 
00025 namespace adobe {
00026 
00027 /****************************************************************************************************/
00028 
00029 struct number_formatter_platform_data_t
00030 {
00031     number_formatter_platform_data_t()
00032     { initialize(); }
00033 
00034     void        initialize();
00035     void        set_format(const std::string& format);
00036     std::string get_format() const;
00037     std::string format(const any_regular_t& x);
00038     any_regular_t     parse(const std::string& str, any_regular_t the_type);
00039     void        monitor_locale(const dictionary_t& locale_data);
00040 
00041     std::string format_m;
00042 };
00043 
00044 /****************************************************************************************************/
00045 
00046 } // namespace adobe
00047 
00048 /****************************************************************************************************/
00049 
00050 // ADOBE_NUMBER_FORMATTER_IMPL_HPP
00051 #endif
00052 
00053 /****************************************************************************************************/

Copyright © 2006-2007 Adobe Systems Incorporated.

Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy.

Search powered by Google