[omniORB] Module without interface definition

Muro, Sam research at businesstz.com
Wed Jul 14 01:30:33 BST 2010


Hello there.
I have the following idl (Data.idl) which consist of two modules, but only
one of them has the Interface defined.

***
//File BasePrompts.idl
//
#ifndef __BASEPROMPTS__
#define __BASEPROMPTS__
module Base
{
		struct Selector
		{
			string subjecName; // Attribute Name
			string subjectCode; // Attribute Value
		};

		typedef sequence<Selector> BaseList;
};
#endif


//FILE Data.idl
//
#include <BasePrompts.idl>
module Camp
{
//  Result Feeback
	enum feedback
		{
			ok,
			rejected
		};

	Interface Core
	{
		feedback eScores(
			in string<255> username,
			in string<32> passwd,
			in string<32> scores,
			inout Base::BaseList baseList); // Function Attributes/Result Attributes
	};
};
***

I would like to invoke eScores() from the client application using the
following snippets;

static void invokeOperation(Camp_ptr e)
{
  CORBA::String_var username = (const char*) "Mimi";
  CORBA::String_var password = (const char*) "ohh!";
  CORBA::String_var scores = (const char*) "B+";

  ****how do I define one for sequence Baselist), say baselist

  {ReturnType} myElements = e-> eScores(username, password, scores, 
baselist) //I need help here
  .
  .
  .
}

Please assist for those who knows the workaround

Regards
Sam



More information about the omniORB-list mailing list