|
Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
|
#include <stocks.h>


Public Types | |
| typedef std::basic_ostream< char, std::char_traits< char > > | outStream |
| typedef std::ostreambuf_iterator< char, std::char_traits< char > > | iter_type |
| typedef std::deque< Company *, std::allocator< Company * > > | database |
| typedef std::locale::facet | facet |
Public Member Functions | |
| StockXchange (std::size_t refs=0) | |
| virtual | ~StockXchange () |
| virtual bool | put (std::ostream &os) const |
| virtual void | add (const std::string &name, double initPrice) |
| virtual void | localTime (std::ostream &) const |
Static Public Attributes | |
| static std::locale::id | id |
Protected Attributes | |
| database | companyDatabase |
Friends | |
| StockXchange::outStream & | operator<< (StockXchange::outStream &, const StockXchange &) |
| typedef std::deque<Company*,std::allocator<Company*> > StockXchange::database |
| typedef std::locale::facet StockXchange::facet |
| typedef std::ostreambuf_iterator<char, std::char_traits<char> > StockXchange::iter_type |
| typedef std::basic_ostream<char,std::char_traits<char> > StockXchange::outStream |
|
virtual |
Definition at line 42 of file stocks.cpp.
|
virtual |
Definition at line 66 of file stocks.cpp.
|
virtual |
Reimplemented in TokyoStockXchange, FrankfurtStockXchange, NewYorkStockXchange, and ParisStockXchange.
Definition at line 52 of file stocks.cpp.
|
virtual |
Reimplemented in TokyoStockXchange, FrankfurtStockXchange, NewYorkStockXchange, and ParisStockXchange.
Definition at line 72 of file stocks.cpp.
|
friend |
|
static |
stocks.cpp - An example program using STL's money_punct, num_put and time_put locale facets.
$Id$
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 1994-2006 Rogue Wave Software.