strings.cpp
Go to the documentation of this file.
00001 
00009 /*****************************************************************************
00010 ** Includes
00011 *****************************************************************************/
00012 
00013 #include "../../include/ecl/formatters/strings.hpp"
00014 
00015 /*****************************************************************************
00016 ** Namespaces
00017 *****************************************************************************/
00018 
00019 namespace ecl {
00020 
00021 /*****************************************************************************
00022 ** Using
00023 *****************************************************************************/
00024 
00025 using std::string;
00026 
00027 /*****************************************************************************
00028 ** Implementation [Format<string>]
00029 *****************************************************************************/
00030 
00031 Format<std::string>& Format<std::string>::operator () (int w, Alignment a)
00032 {
00033     width(w);
00034     align(a);
00035     return *this;
00036 }
00037 
00038 Format<std::string>& Format<std::string>::operator()(const std::string &input_string)
00039 {
00040     s =  input_string;
00041     ready_to_format = true;
00042     return *this;
00043 }
00044 
00045 /*****************************************************************************
00046 * Implementation [temporary formatting]
00047 *****************************************************************************/
00048 Format<std::string>& Format<std::string>::operator() (const std::string &input_string, int w)
00049 {
00050     width(w);
00051     s = input_string;
00052     ready_to_format = true;
00053     return *this;
00054 }
00055 Format<std::string>& Format<std::string>::operator() (const std::string &input_string, int w, Alignment a)
00056 {
00057     width(w);
00058     align(a);
00059     s = input_string;
00060     ready_to_format = true;
00061     return *this;
00062 }
00063 
00064 }; // namespace ecl
00065 
00066 
00067 


ecl_formatters
Author(s): Daniel Stonier (d.stonier@gmail.com)
autogenerated on Thu Jan 2 2014 11:12:10