Click here to Skip to main content
15,896,063 members
Articles / Programming Languages / C++

CORBA Application Wizard - A Tutorial on usage. Part II

Rate me:
Please Sign up or sign in to vote.
4.92/5 (9 votes)
3 Nov 20035 min read 43K   1.2K   16  
A tutorial on how to use the CORBA Application Wizard
// -*- C++ -*-
//
// $Id$

// ****  Code generated by the The ACE ORB (TAO) IDL Compiler ****
// TAO and the TAO IDL Compiler have been developed by:
//       Center for Distributed Object Computing
//       Washington University
//       St. Louis, MO
//       USA
//       http://www.cs.wustl.edu/~schmidt/doc-center.html
// and
//       Distributed Object Computing Laboratory
//       University of California at Irvine
//       Irvine, CA
//       USA
//       http://doc.ece.uci.edu/
//
// Information about TAO is available at:
//     http://www.cs.wustl.edu/~schmidt/TAO.html

// TAO_IDL - Generated from 
// E:\ACE_wrappers\TAO\TAO_IDL\be\be_codegen.cpp:922

#ifndef QUOTERI_H_
#define QUOTERI_H_

#include "QuoterS.h"

#if !defined (ACE_LACKS_PRAGMA_ONCE)
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */

//Class Quoter_Stock_i
class  Quoter_Stock_i : public virtual POA_Quoter::Stock
{
public:
	//Constructor 
	Quoter_Stock_i(const char* symbol, const char* full_name, CORBA::Double price);
  
	//Destructor 
	virtual ~Quoter_Stock_i(void);

	CORBA::Double price() throw (CORBA::SystemException);
	char * symbol() throw (CORBA::SystemException);
	char * full_name() throw (CORBA::SystemException);

private:
	std::string symbol_;
	std::string full_name_;
	CORBA::Double price_;
};

//Class Quoter_StockFactory_i
class  Quoter_StockFactory_i : public virtual POA_Quoter::StockFactory
{
public:
	//Constructor 
	Quoter_StockFactory_i (void);
  
	//Destructor 
	virtual ~Quoter_StockFactory_i (void);
  
	Quoter::Stock_ptr get_stock (const char * stock_symbol) throw (CORBA::SystemException, Quoter::Invalid_Stock_Symbol);

private:
	Quoter_Stock_i msft_;
	Quoter_Stock_i rhat_;
};


#endif /* QUOTERI_H_  */

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
United Kingdom United Kingdom
I am a qualified Veterinary Surgeon who prefers treating computers with viruses than animals with viruses. I have recently completed a MEng German Informatics degree at the University of Reading with a 2:1. I also have the ISEB Foundation Certificate in Software Testing.

Currently I am umemployed and desparately looking for a job in the IT industry.

Comments and Discussions