📄 tmputnam.htm
字号:
<html>
<head>
<title>time_put_byname</title>
<head>
<body bgcolor="#FFFFFF">
<a name="here"></a>
<img src="timeban.gif">
<pre>
<font size=5>Class Name</font> time_put_byname
<font size=5>Header File</font> <locale>
<font size=5>Classification</font> abstract data type
</pre>
<a href="tmputnam.htm#crd">Class Relationship Diagram</a><br>
<br>
<a href="tmputnam.htm#class-descrip">Class Description</a>
<h1>Member Classes</h1>
<a href="tmputnam.htm#id">locale::id</a>
<h1>Methods</h1>
<pre>
<a href="tmputnam.htm#do-put">
virtual iter_type do_put(iter_type s, ios_base&, char_type,
const tm* t, char format, char modifier) const;</a>
<a href="tmputnam.htm#time-put-byname">
explicit time_put_byname(const char*, size_t refs = 0);</a>
<a href="tmputnam.htm#~time-put-byname">
~time_put_byname();</a>
</pre>
<hr>
<a name="class-descrip"><h3>Class Description</h3></a>
<p>
The time_put_byname class describes a class that provides the same
functionality as the time_put class for a named locale.
</p>
<hr>
<a name="id"><h3>locale::id</h3></a>
<p>
<em>locale::id</em> is a class used to provide an identification of a locale facet interfaces used as
an index for lookup and to encapsulate initialization.
</p>
<hr>
<pre>
<a name="do-put">
Method do_put()</a>
Access Protected
Classification Modifier
Syntax virtual iter_type do_put(iter_type s, ios_base& str,
char_type fill, const tm* t,
char format,
char modifier) const;
Parameters <em>s</em> is an iterator that points to the character
buffer used for output.
<em>str</em> is a reference to the ios_base object.
<em>fill</em> is the character used for padding.
<em>t</em> is the structure that contains the
date/time values.
<em>format</em> is a specifier used to control formatting.
<em>modifier</em> is a modifier used to control formatting.
Returns The method returns an iterator that points to the
character past the last character produced.
</pre>
<h3>Description</h3>
<p>
The do_put() method formats the date/time contained in the
parameter <em>t</em>. It writes out a character string that is placed character buffer
pointed to by <em>s</em>. The string is formatted according to the parameters <em>format</em> and
<em>modifier</em>. They are iterpreted identically in the same way as the strftime function
that interprets its format and modifer flags. The <em>fill</em> character is used for padding.
The method returns an iterator that points to the character past the last
character produced.
</p>
<hr>
<pre>
<a name="time-put-byname">
Method time_put_byname()</a>
Access Public
Classification Constructor
Syntax explicit time_put_byname(const char* name,
size_t refs = 0);
Parameters <em>name</em> is the name of the named locale.
<em>refs</em>, if the refs argument = 0 then the destruction
of the object is delegated to the locale or locales
which contain it. If refs = 1 then the object must
be explicitly deleted. The locale will not delete
it. The object can then be maintained across the
lifetime of multiple locales.
Returns None
</pre>
<h3>Description</h3>
<p>
The constructor constructs a time_put_byname facet object for the named locale.
</p>
<hr>
<pre>
<a name="~time-put-byname">
Method time_put_byname()</a>
Access Protected
Classification Destructor
Syntax ~time_put_byname();
Parameters None
Returns None
</pre>
<h3>Description</h3>
<p>
This destructor destroys the time_put_byname facet object.
</p>
<hr>
<a name="crd"><h2>The Class Relationship Diagram for time_put_byname</h2></a>
<img src="tmputnam.gif">
<hr>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -