Muro, Sam
2010-07-14 03:30:47 UTC
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
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