Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Public Types | Public Member Functions | Static Public Attributes | Protected Attributes | Friends
StockXchange Struct Reference

#include <stocks.h>

Inheritance diagram for StockXchange:
Inheritance graph
[legend]
Collaboration diagram for StockXchange:
Collaboration graph
[legend]

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 &)
 

Detailed Description

Definition at line 135 of file stocks.h.

Member Typedef Documentation

◆ database

typedef std::deque<Company*,std::allocator<Company*> > StockXchange::database

Definition at line 139 of file stocks.h.

◆ facet

typedef std::locale::facet StockXchange::facet

Definition at line 141 of file stocks.h.

◆ iter_type

typedef std::ostreambuf_iterator<char, std::char_traits<char> > StockXchange::iter_type

Definition at line 138 of file stocks.h.

◆ outStream

typedef std::basic_ostream<char,std::char_traits<char> > StockXchange::outStream

Definition at line 137 of file stocks.h.

Constructor & Destructor Documentation

◆ StockXchange()

StockXchange::StockXchange ( std::size_t  refs = 0)
inline

Definition at line 143 of file stocks.h.

◆ ~StockXchange()

StockXchange::~StockXchange ( )
virtual

Definition at line 42 of file stocks.cpp.

Member Function Documentation

◆ add()

void StockXchange::add ( const std::string &  name,
double  initPrice 
)
virtual

Definition at line 66 of file stocks.cpp.

◆ localTime()

void StockXchange::localTime ( std::ostream &  os) const
virtual

Reimplemented in TokyoStockXchange, FrankfurtStockXchange, NewYorkStockXchange, and ParisStockXchange.

Definition at line 52 of file stocks.cpp.

◆ put()

bool StockXchange::put ( std::ostream &  os) const
virtual

Reimplemented in TokyoStockXchange, FrankfurtStockXchange, NewYorkStockXchange, and ParisStockXchange.

Definition at line 72 of file stocks.cpp.

Friends And Related Symbol Documentation

◆ operator<<

StockXchange::outStream & operator<< ( StockXchange::outStream &  ,
const StockXchange &   
)
friend

Field Documentation

◆ companyDatabase

database StockXchange::companyDatabase
protected

Definition at line 152 of file stocks.h.

◆ id

std::locale::id StockXchange::id
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.

Definition at line 146 of file stocks.h.


The documentation for this struct was generated from the following files: