summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorboris <boris@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2005-12-07 11:34:42 +0000
committerboris <boris@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2005-12-07 11:34:42 +0000
commit4950b7be20eb850a9614c8c0862c19f4bcb2c711 (patch)
treeb1735d9e8510ecffb78312afe58f901b0d751be2
parent0481a827bbe262f18041c37e583976edcec6d6d5 (diff)
downloadATCD-4950b7be20eb850a9614c8c0862c19f4bcb2c711.tar.gz
ChangeLogTag:Wed Dec 7 12:41:22 2005 Boris Kolpackov <boris@kolpackov.net>
-rw-r--r--TAO/CIAO/CCF/Example/CIDL/LocalExecutorMapping/ExecutorMappingGenerator.cpp2
-rw-r--r--TAO/CIAO/CIDLC/ExecImplGenerator.cpp4
-rw-r--r--TAO/CIAO/CIDLC/ExecImplHeaderGenerator.cpp48
-rw-r--r--TAO/CIAO/CIDLC/ExecImplSourceGenerator.cpp84
-rw-r--r--TAO/CIAO/CIDLC/ExecutorMappingGenerator.cpp2
-rw-r--r--TAO/CIAO/CIDLC/ServantGenerator.cpp4
-rw-r--r--TAO/CIAO/CIDLC/ServantHeaderGenerator.cpp17
-rw-r--r--TAO/CIAO/CIDLC/ServantSourceGenerator.cpp310
-rw-r--r--TAO/CIAO/ChangeLog40
9 files changed, 265 insertions, 246 deletions
diff --git a/TAO/CIAO/CCF/Example/CIDL/LocalExecutorMapping/ExecutorMappingGenerator.cpp b/TAO/CIAO/CCF/Example/CIDL/LocalExecutorMapping/ExecutorMappingGenerator.cpp
index c87639ea62e..a933f2bd6bb 100644
--- a/TAO/CIAO/CCF/Example/CIDL/LocalExecutorMapping/ExecutorMappingGenerator.cpp
+++ b/TAO/CIAO/CCF/Example/CIDL/LocalExecutorMapping/ExecutorMappingGenerator.cpp
@@ -1498,7 +1498,7 @@ generate (CommandLine const& cl,
string suffix (cl.get_value ("lem-file-suffix", "E.idl"));
string expr (cl.get_value (
- "lem-file-regex", "/(\\.(idl|cidl))?$/" + suffix + "/"));
+ "lem-file-regex", "/^(.+?)(\\.(idl|cidl))?$/$1" + suffix + "/"));
string lem_file_name (regex::perl_s (file_name, expr));
diff --git a/TAO/CIAO/CIDLC/ExecImplGenerator.cpp b/TAO/CIAO/CIDLC/ExecImplGenerator.cpp
index e68bc5a6206..a1b9fc992e7 100644
--- a/TAO/CIAO/CIDLC/ExecImplGenerator.cpp
+++ b/TAO/CIAO/CIDLC/ExecImplGenerator.cpp
@@ -144,7 +144,7 @@ ExecImplGenerator::compute_export_macro (const fs::path& file_path)
// Replace the suffix.
export_macro_ =
regex::perl_s (export_macro_,
- "/(\\.(IDL|CIDL|CDL))?$/_EXEC_Export/");
+ "/^(.+?)(\\.(IDL|CIDL|CDL))?$/$1_EXEC_Export/");
// Replace any remaining '.' in the string with '_'.
export_macro_ = regex::perl_s (export_macro_,
@@ -164,7 +164,7 @@ ExecImplGenerator::configure_stream (string const& suffix_option,
default_suffix);
string file_expr =
cl_.get_value (regex_option,
- "/(\\.(idl|cidl|cdl))?$/" + file_suffix + "/");
+ "/^(.+?)(\\.(idl|cidl|cdl))?$/$1" + file_suffix + "/");
string file_name = regex::perl_s (file_name_, file_expr);
diff --git a/TAO/CIAO/CIDLC/ExecImplHeaderGenerator.cpp b/TAO/CIAO/CIDLC/ExecImplHeaderGenerator.cpp
index 6ab0814e449..6f76d1264c0 100644
--- a/TAO/CIAO/CIDLC/ExecImplHeaderGenerator.cpp
+++ b/TAO/CIAO/CIDLC/ExecImplHeaderGenerator.cpp
@@ -375,7 +375,7 @@ namespace
traverse (UnconstrainedInterface& i)
{
if (i.context ().count ("facet_impl_hdr_gen")) return;
-
+
os << "class " << ctx.export_macro () << " "
<< i.name () << "_exec_i" << endl
<< ": public virtual " << i.scoped_name ().scope_name ()
@@ -438,9 +438,9 @@ namespace
inherits (i, inherits_);
names (i, defines_);
}
-
+
os << "};";
-
+
i.context ().set ("facet_impl_hdr_gen", true);
}
};
@@ -466,11 +466,11 @@ namespace
os << "virtual ";
Traversal::ProviderData::belongs (p, enclosing_belongs_);
-
+
os << "::CCM_";
Traversal::ProviderData::belongs (p, simple_belongs_);
-
+
os << "_ptr" << endl
<< "get_" << p.name () << " (" << endl
<< STRS[ENV_SNGL_HDR] << ")" << endl
@@ -629,7 +629,7 @@ namespace
}
os << "// Port operations." << endl << endl;
-
+
{
Traversal::Component component_emitter;
@@ -646,7 +646,7 @@ namespace
component_emitter.traverse (t);
}
-
+
os << "// Operations from Components::SessionComponent" << endl << endl;
os << "virtual void" << endl
@@ -700,7 +700,7 @@ namespace
<< t.name () << "_Context *context_;" << endl
<< "};";
}
-
+
private:
ComponentExecutor& exec_;
};
@@ -716,17 +716,17 @@ namespace
implements (Type& i)
{
Traversal::ComponentExecutor component_executor;
-
+
Traversal::Implements implements;
component_executor.edge_traverser (implements);
-
+
ComponentExecImplEmitter component_exec_impl_emitter (ctx, i);
implements.node_traverser (component_exec_impl_emitter);
-
+
component_executor.traverse (i);
}
};
-
+
// HomeFactory and HomeFinder are tied to Operation in
// the front end. Since we want to treat them differently
// than regular operations in a home (we want to generate
@@ -1133,11 +1133,11 @@ namespace
<< " ::Components::HomeExecutorBase_ptr" << endl
<< "create" << t.name () << "_Impl (void);" << endl;
}
-
+
private:
HomeExecutor& exec_;
};
-
+
struct HomeExecutorEmitter : Traversal::HomeExecutor, EmitterBase
{
HomeExecutorEmitter (Context& c)
@@ -1149,13 +1149,13 @@ namespace
implements (Type& i)
{
Traversal::HomeExecutor home_executor;
-
+
Traversal::Implements implements;
home_executor.edge_traverser (implements);
-
+
HomeExecImplEmitter home_exec_impl_emitter (ctx, i);
implements.node_traverser (home_exec_impl_emitter);
-
+
home_executor.traverse (i);
}
};
@@ -1201,7 +1201,9 @@ ExecImplHeaderEmitter::pre (TranslationUnit&)
string guard =
"CIAO_"
+ regex::perl_s (uc_file_name,
- "/(\\.(IDL|CIDL|CDL))?$/" + uc_file_suffix + "/");
+ "/^(.+?)(\\.(IDL|CIDL|CDL))?$/$1"
+ + uc_file_suffix
+ + "/");
// Replace any remaining '.' with '_'.
guard = regex::perl_s (guard, "/\\./_/");
@@ -1214,7 +1216,7 @@ ExecImplHeaderEmitter::pre (TranslationUnit&)
"_svnt.h");
string svnt_file_name = regex::perl_s (file_name,
- "/(\\.(idl|cidl|cdl))?$/"
+ "/^(.+?)(\\.(idl|cidl|cdl))?$/$1"
+ file_suffix
+ "/");
@@ -1223,10 +1225,10 @@ ExecImplHeaderEmitter::pre (TranslationUnit&)
os << "#if !defined (ACE_LACKS_PRAGMA_ONCE)" << endl
<< "# pragma once" << endl
<< "#endif /* ACE_LACKS_PRAGMA_ONCE */" << endl << endl;
-
+
string default_export_include =
regex::perl_s (file_name,
- "/(\\.(idl|cidl|cdl))?$/_exec_export.h/");
+ "/^(.+?)(\\.(idl|cidl|cdl))?$/$1_exec_export.h/");
string export_include = cl_.get_value ("exec-export-include",
default_export_include);
@@ -1303,7 +1305,7 @@ void
ExecImplHeaderEmitter::post (TranslationUnit&)
{
if (file_.empty ()) return;
-
+
string uc_file_name = file_.leaf ();
std::transform (uc_file_name.begin (),
@@ -1322,7 +1324,7 @@ ExecImplHeaderEmitter::post (TranslationUnit&)
string guard =
"CIAO_"
+ regex::perl_s (uc_file_name,
- "/(\\.(IDL|CIDL))?$/" + uc_file_suffix + "/");
+ "/^(.+?)(\\.(IDL|CIDL))?$/$1" + uc_file_suffix + "/");
guard = regex::perl_s (guard, "/\\./_/");
diff --git a/TAO/CIAO/CIDLC/ExecImplSourceGenerator.cpp b/TAO/CIAO/CIDLC/ExecImplSourceGenerator.cpp
index f9975a08afb..a51dc25deab 100644
--- a/TAO/CIAO/CIDLC/ExecImplSourceGenerator.cpp
+++ b/TAO/CIAO/CIDLC/ExecImplSourceGenerator.cpp
@@ -96,7 +96,7 @@ namespace
os << "}";
}
};
-
+
template <typename T>
struct OperationEmitter : Traversal::Operation, EmitterBase
{
@@ -295,7 +295,7 @@ namespace
<< STRS[EXCP_SNGL] << endl
<< "{"
<< STRS[YCH] << endl;
-
+
Traversal::ReadWriteAttribute::belongs (a, return_belongs_);
os << "}";
@@ -353,7 +353,7 @@ namespace
<< STRS[EXCP_SNGL] << endl
<< "{"
<< STRS[YCH] << endl;
-
+
Traversal::ReadAttribute::belongs (a, return_belongs_);
os << "}";
@@ -407,17 +407,17 @@ namespace
traverse (UnconstrainedInterface& i)
{
if (i.context ().count ("facet_impl_src_gen")) return;
-
+
os << STRS[SEP] << endl
<< "// Facet Executor Implementation Class: "
<< i.name () << "_exec_i" << endl
<< STRS[SEP] << endl << endl;
-
- os << i.name () << "_exec_i::"
+
+ os << i.name () << "_exec_i::"
<< i.name () << "_exec_i (void)" << endl
<< "{"
<< "}"
- << i.name () << "_exec_i::~"
+ << i.name () << "_exec_i::~"
<< i.name () << "_exec_i (void)" << endl
<< "{"
<< "}"
@@ -474,7 +474,7 @@ namespace
inherits (i, inherits_);
names (i, defines_);
}
-
+
i.context ().set ("facet_impl_src_gen", true);
}
};
@@ -499,13 +499,13 @@ namespace
traverse (SemanticGraph::Provider& p)
{
Traversal::ProviderData::belongs (p, enclosing_belongs_);
-
+
os << "::CCM_";
Traversal::ProviderData::belongs (p, simple_belongs_);
-
+
os << "_ptr" << endl
- << scope_.name () << "_exec_i::get_"
+ << scope_.name () << "_exec_i::get_"
<< p.name () << " (" << endl
<< STRS[ENV_SNGL_SRC_NOTUSED] << ")" << endl
<< STRS[EXCP_SNGL] << endl
@@ -514,11 +514,11 @@ namespace
<< "return ";
Traversal::ProviderData::belongs (p, enclosing_belongs_);
-
+
os << "::CCM_";
Traversal::ProviderData::belongs (p, simple_belongs_);
-
+
os << "::_nil ();" << endl
<< "}";
}
@@ -530,7 +530,7 @@ namespace
// as well (the spec is vague on this point). If so, we need the
// CIDL compiler to support valuetype/eventtype inheritance.
os << "void" << endl
- << scope_.name () << "_exec_i::push_"
+ << scope_.name () << "_exec_i::push_"
<< c.name () << " (" << endl;
Traversal::ConsumerData::belongs (c, belongs_);
@@ -590,12 +590,12 @@ namespace
<< "// Component Executor Implementation Class: "
<< t.name () << "_exec_i" << endl
<< STRS[SEP] << endl << endl;
-
- os << t.name () << "_exec_i::"
+
+ os << t.name () << "_exec_i::"
<< t.name () << "_exec_i (void)" << endl
<< "{"
<< "}"
- << t.name () << "_exec_i::~"
+ << t.name () << "_exec_i::~"
<< t.name () << "_exec_i (void)" << endl
<< "{"
<< "}";
@@ -684,7 +684,7 @@ namespace
}
os << "// Port operations." << endl << endl;
-
+
{
Traversal::Component component_emitter;
@@ -701,7 +701,7 @@ namespace
component_emitter.traverse (t);
}
-
+
os << "// Operations from Components::SessionComponent" << endl << endl;
os << "void" << endl
@@ -876,13 +876,13 @@ namespace
os << "{"
<< STRS[YCH] << endl
<< "return ";
-
+
Traversal::HomeFactory::returns (hf, enclosing_returns_);
-
+
os << "::CCM_";
-
+
Traversal::HomeFactory::returns (hf, simple_returns_);
-
+
os << "::_nil ();"
<< "}";
}
@@ -892,7 +892,7 @@ namespace
{
os << "," << endl;
}
-
+
private:
EnclosingTypeNameEmitter enclosing_type_name_emitter_;
SimpleTypeNameEmitter simple_type_name_emitter_;
@@ -970,13 +970,13 @@ namespace
os << "{"
<< STRS[YCH] << endl
<< "return ";
-
+
Traversal::HomeFinder::returns (hf, enclosing_returns_);
-
+
os << "::CCM_";
-
+
Traversal::HomeFinder::returns (hf, simple_returns_);
-
+
os << "::_nil ();"
<< "}";
}
@@ -986,7 +986,7 @@ namespace
{
os << "," << endl;
}
-
+
private:
EnclosingTypeNameEmitter enclosing_type_name_emitter_;
SimpleTypeNameEmitter simple_type_name_emitter_;
@@ -1009,12 +1009,12 @@ namespace
<< "// Home Executor Implementation Class: "
<< t.name () << "_exec_i" << endl
<< STRS[SEP] << endl << endl;
-
- os << t.name () << "_exec_i::"
+
+ os << t.name () << "_exec_i::"
<< t.name () << "_exec_i (void)" << endl
<< "{"
<< "}"
- << t.name () << "_exec_i::~"
+ << t.name () << "_exec_i::~"
<< t.name () << "_exec_i (void)" << endl
<< "{"
<< "}";
@@ -1220,25 +1220,25 @@ namespace
<< STRS[COMP_EC] << "::_nil ();" << endl
<< "ACE_NEW_THROW_EX (" << endl
<< "retval," << endl;
-
+
Traversal::Home home_emitter;
-
+
Traversal::Manages manages_;
home_emitter.edge_traverser (manages_);
-
+
SimpleTypeNameEmitter manages_emitter (os);
manages_.node_traverser (manages_emitter);
-
+
home_emitter.traverse (t);
-
+
os << "_exec_i," << endl
<< "CORBA::NO_MEMORY ());"
<< STRS[ACE_CR] << " (" << STRS[COMP_EC]
<< "::_nil ());" << endl
- << "return retval;"
+ << "return retval;"
<< "}";
}
-
+
virtual void
post (Type& t)
{
@@ -1284,7 +1284,7 @@ ExecImplSourceEmitter::pre (TranslationUnit&)
"_exec.h");
file_name = regex::perl_s (file_name,
- "/(\\.(idl|cidl|cdl))?$/"
+ "/^(.+?)(\\.(idl|cidl|cdl))?$/$1"
+ file_suffix
+ "/");
@@ -1346,7 +1346,7 @@ ExecImplSourceEmitter::generate (TranslationUnit& u)
Traversal::Implements implements;
component_executor.edge_traverser (implements);
home_executor.edge_traverser (implements);
-
+
//--
ComponentExecImplEmitter component_exec_impl_emitter (c);
HomeExecImplEmitter home_exec_impl_emitter (c);
@@ -1354,7 +1354,7 @@ ExecImplSourceEmitter::generate (TranslationUnit& u)
implements.node_traverser (home_exec_impl_emitter);
unit.traverse (u);
-
+
post (u);
}
diff --git a/TAO/CIAO/CIDLC/ExecutorMappingGenerator.cpp b/TAO/CIAO/CIDLC/ExecutorMappingGenerator.cpp
index ac12e34fa8c..46106c5572a 100644
--- a/TAO/CIAO/CIDLC/ExecutorMappingGenerator.cpp
+++ b/TAO/CIAO/CIDLC/ExecutorMappingGenerator.cpp
@@ -1713,7 +1713,7 @@ generate (CommandLine const& cl,
string expr (cl.get_value (
"lem-file-regex",
- "/(\\.(idl|cidl|cdl))?$/" + suffix + "/"));
+ "/^(.+?)(\\.(idl|cidl|cdl))?$/$1" + suffix + "/"));
string lem_file_name (regex::perl_s (file_name, expr));
diff --git a/TAO/CIAO/CIDLC/ServantGenerator.cpp b/TAO/CIAO/CIDLC/ServantGenerator.cpp
index ca55ca2938f..1f85a107600 100644
--- a/TAO/CIAO/CIDLC/ServantGenerator.cpp
+++ b/TAO/CIAO/CIDLC/ServantGenerator.cpp
@@ -154,7 +154,7 @@ ServantGenerator::compute_export_macro (const fs::path& file_path)
// Replace the suffix.
export_macro_ =
regex::perl_s (export_macro_,
- "/(\\.(IDL|CIDL|CDL))?$/_SVNT_Export/");
+ "/^(.+?)(\\.(IDL|CIDL|CDL))?$/$1_SVNT_Export/");
// Replace any remaining '.' in the string with '_'.
export_macro_ = regex::perl_s (export_macro_,
@@ -176,7 +176,7 @@ ServantGenerator::configure_stream (string const& suffix_option,
default_suffix);
string file_expr =
cl_.get_value (regex_option,
- "/(\\.(idl|cidl|cdl))?$/" + file_suffix + "/");
+ "/^(.+?)(\\.(idl|cidl|cdl))?$/$1" + file_suffix + "/");
string file_name = regex::perl_s (file_name_, file_expr);
diff --git a/TAO/CIAO/CIDLC/ServantHeaderGenerator.cpp b/TAO/CIAO/CIDLC/ServantHeaderGenerator.cpp
index 58b73386c0f..09a03374a81 100644
--- a/TAO/CIAO/CIDLC/ServantHeaderGenerator.cpp
+++ b/TAO/CIAO/CIDLC/ServantHeaderGenerator.cpp
@@ -2250,7 +2250,7 @@ namespace
{
os << "#include \""
<< regex::perl_s (qi.file ().string (),
- "/(\\.(idl|cidl|cdl))?$/S.h/")
+ "/^(.+?)(\\.(idl|cidl|cdl))?$/$1S.h/")
<< "\"" << endl << endl;
}
@@ -2259,7 +2259,7 @@ namespace
{
os << "#include \""
<< regex::perl_s (bi.file ().string (),
- "/(\\.(idl|cidl|cdl))?$/S.h/")
+ "/^(.+?)(\\.(idl|cidl|cdl))?$/$1S.h/")
<< "\""
<< endl;
}
@@ -2306,7 +2306,9 @@ ServantHeaderEmitter::pre (TranslationUnit&)
string guard =
"CIAO_GLUE_SESSION_"
+ regex::perl_s (uc_file_name,
- "/(\\.(IDL|CIDL|CDL))?$/" + uc_file_suffix + "/");
+ "/^(.+?)(\\.(IDL|CIDL|CDL))?$/$1"
+ + uc_file_suffix
+ + "/");
// Replace any remaining '.' with '_'.
guard = regex::perl_s (guard, "/\\./_/");
@@ -2327,8 +2329,7 @@ ServantHeaderEmitter::pre (TranslationUnit&)
// @@@ (JP) I guess it's a safe assumption that the tail of the
// suffix will be .idl.
string suffix = cl_.get_value ("lem-file-suffix", "E.idl");
- suffix = regex::perl_s (suffix,
- "/(\\.idl)?$//");
+ suffix = regex::perl_s (suffix, "/^(.+?)(\\.idl)?$/$1/");
// @@@ (JP) No way of knowing if the IDL compiler had command line
// option(s) to change C.h and/or S.h. We could add command line options
@@ -2336,7 +2337,7 @@ ServantHeaderEmitter::pre (TranslationUnit&)
// they are in synch with the IDL compiler's options.
os << "#include \""
<< regex::perl_s (file_name,
- "/(\\.(idl|cidl|cdl))?$/" + suffix + "C.h/")
+ "/^(.+?)(\\.(idl|cidl|cdl))?$/$1" + suffix + "C.h/")
<< "\""
<< endl << endl;
@@ -2474,7 +2475,9 @@ ServantHeaderEmitter::post (TranslationUnit&)
string guard =
"CIAO_GLUE_SESSION_"
+ regex::perl_s (uc_file_name,
- "/(\\.(IDL|CIDL|CDL))?$/" + uc_file_suffix + "/");
+ "/^(.+?)(\\.(IDL|CIDL|CDL))?$/$1"
+ + uc_file_suffix
+ + "/");
guard = regex::perl_s (guard, "/\\./_/");
diff --git a/TAO/CIAO/CIDLC/ServantSourceGenerator.cpp b/TAO/CIAO/CIDLC/ServantSourceGenerator.cpp
index 249d51308a2..22eb3643020 100644
--- a/TAO/CIAO/CIDLC/ServantSourceGenerator.cpp
+++ b/TAO/CIAO/CIDLC/ServantSourceGenerator.cpp
@@ -47,13 +47,13 @@ namespace
{
return cl_;
}
-
+
string
composition_name ()
{
return composition_name_;
}
-
+
void
composition_name (const string& name)
{
@@ -96,7 +96,7 @@ namespace
private:
std::ostream& os;
};
-
+
struct ModuleEmitter : Traversal::Module, EmitterBase
{
ModuleEmitter (Context& c)
@@ -122,7 +122,7 @@ namespace
FlatNameEmitter (std::ostream& os_)
: os (os_)
{}
-
+
virtual void
traverse (SemanticGraph::Type& t)
{
@@ -271,20 +271,20 @@ namespace
{
ace_check_returns_.node_traverser (ace_check_return_emitter_);
}
-
+
// Overridden by facet and home operation emitters to do nothing.
virtual void
gen_swap_related (Type& o)
{
string swap_option = ctx.cl ().get_value ("custom-container", "");
bool swapping = (swap_option == "upgradeable");
-
+
if (swapping)
{
os << "this->activate_component (" << STRS[ENV_SNGL_ARG] << ");";
-
+
Traversal::Operation::returns (o, ace_check_returns_);
-
+
os << endl;
}
}
@@ -339,7 +339,7 @@ namespace
{
os << "{";
- this->gen_swap_related (o);
+ this->gen_swap_related (o);
OperationExecEmitter operation_emitter (ctx);
@@ -461,69 +461,69 @@ namespace
swapping_ (swapping)
{
write_belongs_.node_traverser (write_type_name_emitter_);
-
- edge_traverser (set_raises_);
+
+ edge_traverser (set_raises_);
set_raises_.node_traverser (type_name_emitter_);
}
-
+
virtual void
gen_swapping_set ()
{
os << "this->activate_component (" << STRS[ENV_SNGL_ARG] << ");"
<< "ACE_CHECK;" << endl;
}
-
+
virtual void
pre (SemanticGraph::ReadWriteAttribute&)
{
os << "void" << endl;
}
-
+
virtual void
name (SemanticGraph::ReadWriteAttribute& a)
{
os << scope_.name () << "_Servant::" << a.name () << " (" << endl;
-
+
Traversal::ReadWriteAttribute::belongs (a, write_belongs_);
-
+
os << " " << a.name () << endl
<< STRS[ENV_SRC] << ")" << endl;
}
-
+
virtual void
get_raises (SemanticGraph::ReadWriteAttribute&)
{
}
-
+
virtual void
set_raises_none (SemanticGraph::ReadWriteAttribute&)
{
os << STRS[EXCP_SNGL];
}
-
+
virtual void
set_raises_pre (SemanticGraph::ReadWriteAttribute&)
{
os << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl;
}
-
+
virtual void
set_raises_post (SemanticGraph::ReadWriteAttribute&)
{
os << "))" << endl;
}
-
+
virtual void
post (SemanticGraph::ReadWriteAttribute& a)
{
os << "{";
-
+
if (swapping_)
{
this->gen_swapping_set ();
}
-
+
os << "this->executor_->" << a.name () << " (" << endl
<< a.name () << endl
<< STRS[ENV_ARG] << ");" << endl
@@ -535,7 +535,7 @@ namespace
{
os << "," << endl;
}
-
+
protected:
T& scope_;
Traversal::Belongs write_belongs_;
@@ -562,26 +562,26 @@ namespace
{
read_belongs_.node_traverser (read_type_name_emitter_);
ace_check_return_belongs_.node_traverser (ace_check_return_emitter_);
-
- edge_traverser (get_raises_);
+
+ edge_traverser (get_raises_);
get_raises_.node_traverser (type_name_emitter_);
}
-
+
// ReadWriteAttribute
//
- // Overridden by facet attribute emitter.
+ // Overridden by facet attribute emitter.
virtual void
gen_swapping_get (SemanticGraph::ReadWriteAttribute& a)
{
os << "this->activate_component (" << STRS[ENV_SNGL_ARG] << ");";
Traversal::ReadWriteAttribute::belongs (a, ace_check_return_belongs_);
-
+
os << endl;
}
-
- // Overridden by facet attribute emitter.
+
+ // Overridden by facet attribute emitter.
virtual void
gen_write_operation (SemanticGraph::ReadWriteAttribute& a,
bool swapping)
@@ -591,7 +591,7 @@ namespace
swapping);
write_attribute_emitter.traverse (a);
}
-
+
virtual void
pre (SemanticGraph::ReadWriteAttribute& a)
{
@@ -606,26 +606,26 @@ namespace
os << scope_.name () << "_Servant::" << a.name () << " (" << endl
<< STRS[ENV_SNGL_SRC] << ")" << endl;
}
-
+
virtual void
get_raises_none (SemanticGraph::ReadWriteAttribute&)
{
os << STRS[EXCP_SNGL] << endl;
}
-
+
virtual void
get_raises_pre (SemanticGraph::ReadWriteAttribute&)
{
os << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl;
}
-
+
virtual void
get_raises_post (SemanticGraph::ReadWriteAttribute&)
{
os << "))" << endl;
}
-
+
virtual void
set_raises (SemanticGraph::ReadWriteAttribute&)
{
@@ -635,15 +635,15 @@ namespace
post (SemanticGraph::ReadWriteAttribute& a)
{
os << "{";
-
+
string swap_option = ctx.cl ().get_value ("custom-container", "");
bool swapping = (swap_option == "upgradeable");
-
+
if (swapping)
{
this->gen_swapping_get (a);
}
-
+
os << "return this->executor_->" << a.name () << " (" << endl
<< STRS[ENV_SNGL_ARG] << ");" << endl
<< "}";
@@ -656,18 +656,18 @@ namespace
{
os << "," << endl;
}
-
+
// ReadAttribute
//
- // Overridden by facet attribute emitter to do nothing.
+ // Overridden by facet attribute emitter to do nothing.
virtual void
gen_swapping_get (SemanticGraph::ReadAttribute& a)
{
os << "this->activate_component (" << STRS[ENV_SNGL_ARG] << ");";
Traversal::ReadAttribute::belongs (a, ace_check_return_belongs_);
-
+
os << endl;
}
@@ -685,26 +685,26 @@ namespace
os << scope_.name () << "_Servant::" << a.name () << " (" << endl
<< STRS[ENV_SNGL_SRC] << ")" << endl;
}
-
+
virtual void
get_raises_none (SemanticGraph::ReadAttribute&)
{
os << STRS[EXCP_SNGL] << endl;
}
-
+
virtual void
get_raises_pre (SemanticGraph::ReadAttribute&)
{
os << STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "," << endl;
}
-
+
virtual void
get_raises_post (SemanticGraph::ReadAttribute&)
{
os << "))" << endl;
}
-
+
virtual void
set_raises (SemanticGraph::ReadAttribute&)
{
@@ -714,15 +714,15 @@ namespace
post (SemanticGraph::ReadAttribute& a)
{
os << "{";
-
+
string swap_option = ctx.cl ().get_value ("custom-container", "");
bool swapping = (swap_option == "upgradeable");
-
+
if (swapping)
{
this->gen_swapping_get (a);
}
-
+
os << "return this->executor_->" << a.name () << " (" << endl
<< STRS[ENV_SNGL_ARG] << ");" << endl
<< "}";
@@ -762,7 +762,7 @@ namespace
read_belongs_.node_traverser (read_type_name_emitter_);
ace_check_return_belongs_.node_traverser (ace_check_return_emitter_);
}
-
+
// Overridden by facet attribute emitter to do nothing.
virtual void
@@ -771,10 +771,10 @@ namespace
os << "this->activate_component (" << STRS[ENV_SNGL_ARG] << ");";
Traversal::ReadAttribute::belongs (a, ace_check_return_belongs_);
-
+
os << endl;
}
-
+
virtual void
name (SemanticGraph::ReadAttribute& a)
{
@@ -798,15 +798,15 @@ namespace
<< STRS[ENV_SNGL_SRC] << ")" << endl
<< STRS[EXCP_SNGL] << endl
<< "{";
-
+
string swap_option = ctx.cl ().get_value ("custom-container", "");
bool swapping = (swap_option == "upgradeable");
-
+
if (swapping)
{
this->gen_swapping_get (a);
}
-
+
os << "return this->executor_->" << a.name () << " (" << endl
<< STRS[ENV_SNGL_ARG] << ");" << endl
<< "}";
@@ -844,7 +844,7 @@ namespace
gen_swap_related (Type&)
{
}
-
+
virtual void
pre (Type&)
{
@@ -858,7 +858,7 @@ namespace
<< scope_.name () << "_Servant_T<T>::" << o.name ();
}
};
-
+
struct FacetWriteAttributeEmitter
: WriteAttributeEmitter<SemanticGraph::Interface>
{
@@ -867,12 +867,12 @@ namespace
FacetWriteAttributeEmitter (Context& c, SemanticGraph::Interface& i)
: WriteAttributeEmitter<SemanticGraph::Interface> (c, i, false)
{}
-
+
virtual void
pre (SemanticGraph::ReadWriteAttribute& a)
{
os << "template <typename T>" << endl;
-
+
WriteAttributeEmitter<SemanticGraph::Interface>::pre (a);
}
@@ -881,9 +881,9 @@ namespace
{
os << scope_.name () << "_Servant_T<T>::"
<< a.name () << " (" << endl;
-
+
Traversal::ReadWriteAttribute::belongs (a, write_belongs_);
-
+
os << " " << a.name () << endl
<< STRS[ENV_SRC] << ")" << endl;
}
@@ -896,12 +896,12 @@ namespace
SemanticGraph::Interface& i)
: AttributeEmitter<SemanticGraph::Interface> (c, i)
{}
-
+
// ReadWriteAttribute
//
-
+
// No-op override because we don't want to generate any swapping
- // code for facets.
+ // code for facets.
virtual void gen_swapping_get (SemanticGraph::ReadWriteAttribute&)
{
}
@@ -913,12 +913,12 @@ namespace
FacetWriteAttributeEmitter write_attribute_emitter (ctx, scope_);
write_attribute_emitter.traverse (a);
}
-
+
virtual void
pre (SemanticGraph::ReadWriteAttribute& a)
{
os << "template <typename T>" << endl;
-
+
AttributeEmitter<SemanticGraph::Interface>::pre (a);
}
@@ -932,18 +932,18 @@ namespace
// ReadAttribute
//
-
+
// No-op override because we don't want to generate any swapping
- // code for facets.
+ // code for facets.
virtual void gen_swapping_get (SemanticGraph::ReadAttribute&)
{
}
-
+
virtual void
pre (SemanticGraph::ReadAttribute& a)
{
os << "template <typename T>" << endl;
-
+
AttributeEmitter<SemanticGraph::Interface>::pre (a);
}
@@ -1256,7 +1256,7 @@ namespace
<< "ck," << endl
<< "CIAO::Map_Key_Cookie (key)," << endl
<< "CORBA::NO_MEMORY ());" << endl;
-
+
os << "return ck;" << endl
<< "}";
@@ -1337,7 +1337,7 @@ namespace
<< STRS[ENV_ARG] << ");"
<< "ACE_CHECK;" << endl
<< "}";
-
+
os << "for (ACE_Active_Map_Manager< " << endl
<< STRS[COMP_ECB] << "_var>::iterator giter =" << endl
<< "this->ciao_publishes_" << p.name ()
@@ -1439,7 +1439,7 @@ namespace
os << "Consumer::_nil ());" << endl
<< "}";
-
+
Traversal::PublisherData::belongs (p, belongs_);
os << "Consumer_var retv;"
@@ -1448,9 +1448,9 @@ namespace
<< "{"
<< "return retv._retn ();" << endl
<< "}";
-
+
os << STRS[COMP_ECB] << "_var ecb;" << endl;
-
+
os << "if (this->ciao_publishes_" << p.name ()
<< "_generic_map_.unbind (key, ecb) != 0)" << endl
<< "{"
@@ -1553,7 +1553,7 @@ namespace
Traversal::Belongs simple_belongs_;
SemanticGraph::Component& scope_;
};
-
+
struct SwappableGetConsumersEmitter : Traversal::PublisherData,
Traversal::EmitterData,
EmitterBase
@@ -1564,7 +1564,7 @@ namespace
{
belongs_.node_traverser (type_name_emitter_);
}
-
+
virtual void
traverse (SemanticGraph::Publisher& p)
{
@@ -1580,14 +1580,14 @@ namespace
<< "retval = tmp;"
<< "retval->length (_ciao_size);" << endl
<< "ACE_Active_Map_Manager<" << endl;
-
+
Traversal::PublisherData::belongs (p, belongs_);
os << "Consumer_var>::iterator end =" << endl
<< " this->ciao_publishes_" << p.name ()
<< "_map_.end ();" << endl
<< "for (ACE_Active_Map_Manager<" << endl;
-
+
Traversal::PublisherData::belongs (p, belongs_);
os << "Consumer_var>::iterator iter =" << endl
@@ -1597,15 +1597,15 @@ namespace
<< "++iter)" << endl
<< "{"
<< "ACE_Active_Map_Manager<" << endl;
-
+
Traversal::PublisherData::belongs (p, belongs_);
os << "Consumer_var>::entry &e = *iter;" << endl;
-
+
Traversal::PublisherData::belongs (p, belongs_);
os << "Consumer_var c =" << endl;
-
+
Traversal::PublisherData::belongs (p, belongs_);
os << "Consumer::_narrow (" << endl
@@ -1679,10 +1679,10 @@ namespace
<< t.name () << "_Servant *sv)" << endl
<< " : ACE_NESTED_CLASS (CIAO, Context_Impl_Base (h, c)), " << endl
<< " ctx_svnt_base (h, c, sv)";
-
+
string swap_option = ctx.cl ().get_value ("custom-container", "");
bool swapping = (swap_option == "upgradeable");
-
+
if (swapping)
{
os << "," << endl
@@ -1692,7 +1692,7 @@ namespace
{
os << endl;
}
-
+
os << "{"
<< "}";
@@ -1753,7 +1753,7 @@ namespace
<< STRS[ACE_UA] << " (retval);"
<< STRS[ACE_UA] << " (_ciao_index);"
<< STRS[ACE_UA] << " (_ciao_size);" << endl;
-
+
// Generate IF block for each event sources.
{
Traversal::Component component_emitter;
@@ -1774,7 +1774,7 @@ namespace
os << STRS[ACE_TR] << " (" << STRS[EXCP_IN] << " (), 0);"
<< "}";
}
-
+
os << "// CIAO-specific." << endl << endl;
os << t.name () << "_Context *" << endl
@@ -1887,16 +1887,16 @@ namespace
<< STRS[EXCP_SYS] << "," << endl
<< STRS[EXCP_ECL] << "))" << endl
<< "{";
-
+
string swap_option = ctx.cl ().get_value ("custom-container", "");
bool swapping = (swap_option == "upgradeable");
-
+
if (swapping)
{
os << "this->activate_component (" << STRS[ENV_SNGL_ARG] << ");"
<< STRS[ACE_CR] << " (0);" << endl;
}
-
+
os << "return this->context_->subscribe_" << p.name ()
<< " (" << endl
<< "c" << endl
@@ -1912,13 +1912,13 @@ namespace
<< STRS[EXCP_SYS] << "," << endl
<< STRS[EXCP_ECL] << "))" << endl
<< "{";
-
+
if (swapping)
{
os << "this->activate_component (" << STRS[ENV_SNGL_ARG] << ");"
<< STRS[ACE_CR] << " (0);" << endl;
}
-
+
os << "return this->context_->subscribe_" << p.name ()
<< "_generic (" << endl
<< "c" << endl
@@ -1936,7 +1936,7 @@ namespace
<< STRS[EXCP_SYS] << "," << endl
<< STRS[EXCP_IC] << "))" << endl
<< "{";
-
+
if (swapping)
{
os << "this->activate_component (" << STRS[ENV_SNGL_ARG] << ");"
@@ -1946,7 +1946,7 @@ namespace
os << "Consumer::_nil ());" << endl;
}
-
+
os << "return this->context_->unsubscribe_"
<< p.name () << " (" << endl
<< "ck" << endl
@@ -2209,29 +2209,29 @@ namespace
os << "if (ACE_OS::strcmp (publisher_name, \""
<< p.name () << "\") == 0)" << endl
<< "{";
-
+
Traversal::PublisherData::belongs (p, belongs_);
os << "Consumer_var sub =" << endl;
Traversal::PublisherData::belongs (p, belongs_);
-
+
os << "Consumer::_narrow (" << endl
<< "subscribe" << endl
<< STRS[ENV_ARG] << ");"
<< STRS[ACE_CR] << " (0);" << endl;
-
+
os << "if (CORBA::is_nil (sub.in ()))" << endl
<< "{"
<< "CORBA::Boolean substitutable =" << endl
- << "subscribe->ciao_is_substitutable (" << endl;
+ << "subscribe->ciao_is_substitutable (" << endl;
Traversal::PublisherData::belongs (p, belongs_);
-
+
os << "::_tao_obv_static_repository_id ()" << endl
<< STRS[ENV_ARG] << ");"
<< STRS[ACE_CR] << " (0);" << endl;
-
+
os << "if (substitutable)" << endl
<< "{"
<< "return this->subscribe_" << p.name () << "_generic (" << endl
@@ -2249,7 +2249,7 @@ namespace
<< "sub.in ()" << endl
<< STRS[ENV_ARG] << ");" << endl
<< "}"
- << "}";
+ << "}";
}
private:
@@ -2379,20 +2379,20 @@ namespace
<< STRS[ENV_SNGL_SRC] << ")" << endl
<< STRS[EXCP_SNGL] << endl
<< "{";
-
+
string swap_option = ctx.cl ().get_value ("custom-container", "");
bool swapping = (swap_option == "upgradeable");
-
+
if (swapping)
{
os << "this->activate_component (" << STRS[ENV_SNGL_ARG] << ");"
<< STRS[ACE_CR] << " (";
-
+
Traversal::ProviderData::belongs (p, belongs_);
-
+
os << "::_nil ());" << endl;
}
-
+
os << "if (! ::CORBA::is_nil (this->provide_"
<< p.name () << "_.in ()))" << endl
<< "{"
@@ -2491,10 +2491,10 @@ namespace
<< " " << scope_.name () << "_Servant" << endl
<< " >" << endl
<< "MACRO_MADNESS_TYPEDEF;" << endl;
-
+
os << "ACE_CString obj_id (this->ins_name_);"
<< "obj_id += \"_" << p.name () << "\";" << endl;
-
+
os << "ACE_NEW_THROW_EX ( " << endl
<< " tmp," << endl
<< " MACRO_MADNESS_TYPEDEF (" << endl
@@ -2510,7 +2510,7 @@ namespace
<< "this->container_->ports_servant_activator ();" << endl
<< "if (!sa->register_port_activator (tmp))" << endl
<< "{"
- << "return ";
+ << "return ";
Traversal::ProviderData::belongs (p, belongs_);
@@ -2686,9 +2686,9 @@ namespace
<< "}"
<< "ACE_THROW (" << STRS[EXCP_BET] << " ());" << endl
<< "}";
-
+
os << "CORBA::Boolean" << endl
- << scope_.name () << "_Servant::";
+ << scope_.name () << "_Servant::";
Traversal::ConsumerData::belongs (c, simple_belongs_);
@@ -2707,16 +2707,16 @@ namespace
<< "this->ctx_.in ()" << endl
<< STRS[ENV_ARG] << ");"
<< STRS[ACE_CR] << " (false);" << endl;
-
+
os << "CORBA::ORB_ptr orb = ctx->_ciao_the_Container ()->the_ORB ();"
<< endl;
-
+
os << "CORBA::ValueFactory f =" << endl
<< "orb->lookup_value_factory (" << endl
<< "event_repo_id" << endl
<< STRS[ENV_ARG] << ");"
<< STRS[ACE_CR] << " (false);" << endl;
-
+
os << "if (f == 0)" << endl
<< "{"
<< "return false;" << endl
@@ -2724,18 +2724,18 @@ namespace
<< "CORBA::ValueBase_var v =" << endl
<< "f->create_for_unmarshal (" << STRS[ENV_SNGL_ARG] << ");"
<< STRS[ACE_CR] << " (false);" << endl;
-
+
os << "f->_remove_ref ();" << endl;
-
+
os << "if (v.in () == 0)" << endl
<< "{"
<< "return false;" << endl
<< "}";
-
+
os << "return dynamic_cast< ";
-
+
Traversal::ConsumerData::belongs (c, belongs_);
-
+
os << " *> (v.in ()) != 0;" << endl
<< "}" << endl;
@@ -2841,10 +2841,10 @@ namespace
<< " " << scope_.name () << "_Servant" << endl
<< " >" << endl
<< "MACRO_MADNESS_TYPEDEF;" << endl;
-
+
os << "ACE_CString obj_id (this->ins_name_);"
<< "obj_id += \"_" << c.name () << "\";" << endl;
-
+
os << "ACE_NEW_THROW_EX ( " << endl
<< " tmp," << endl
<< " MACRO_MADNESS_TYPEDEF (" << endl
@@ -2951,14 +2951,14 @@ namespace
Traversal::Inherits inherits;
inherits.node_traverser (event_type_operations);
event_type_operations.edge_traverser (inherits);
-
+
Traversal::Defines include_inherit_defines;
- event_type_operations.edge_traverser (include_inherit_defines);
+ event_type_operations.edge_traverser (include_inherit_defines);
OperationExistsEmitter op_emitter (this);
include_inherit_defines.node_traverser (op_emitter);
-
+
Traversal::Supports supports;
- event_type_operations.edge_traverser (supports);
+ event_type_operations.edge_traverser (supports);
Traversal::Interface iface;
supports.node_traverser (iface);
inherits.node_traverser (iface);
@@ -2993,7 +2993,7 @@ namespace
<< "event type ";
Traversal::ConsumerData::belongs (c, cerr_belongs_);
-
+
cerr << " consumed by " << c.scoped_name () << endl
<< "has an operation, factory declaration,"
<< " or private member. "
@@ -3054,14 +3054,14 @@ namespace
private:
RegisterValueFactoryEmitter* r_;
};
-
+
struct PrivateExistsEmitter : Traversal::ValueTypePrivateMember
{
PrivateExistsEmitter (RegisterValueFactoryEmitter* r)
: r_ (r)
{
}
-
+
virtual void
traverse (Type&)
{
@@ -3130,7 +3130,7 @@ namespace
pre (SemanticGraph::ReadWriteAttribute& a)
{
Traversal::Belongs delegate_belongs;
-
+
SetAttributeDelegationEmitter delegater (ctx.os (), a);
delegate_belongs.node_traverser (delegater);
@@ -3219,16 +3219,16 @@ namespace
<< STRS[ENV_SRC] << ")" << endl
<< "{"
<< "ACE_ENV_EMIT_CODE (ACE_UNUSED_ARG (ACE_TRY_ENV));" << endl;
-
+
string swap_option = ctx.cl ().get_value ("custom-container", "");
bool swapping = (swap_option == "upgradeable");
-
+
if (swapping)
{
os << "this->activate_component (" << STRS[ENV_SNGL_ARG] << ");"
<< "ACE_CHECK;" << endl;
}
-
+
os << "for (CORBA::ULong i = 0; i < descr.length (); ++i)" << endl
<< "{"
<< "const char *descr_name = descr[i]->name ();"
@@ -3321,13 +3321,13 @@ namespace
<< STRS[EXCP_AC] << "," << endl
<< STRS[EXCP_ECL] << "))" << endl
<< "{";
-
+
if (swapping)
{
os << "this->activate_component (" << STRS[ENV_SNGL_ARG] << ");"
<< STRS[ACE_CR] << " (0);" << endl;
}
-
+
os << "// If the component has no receptacles, this will be unused."
<< endl
<< STRS[ACE_UA] << " (connection);" << endl
@@ -3368,13 +3368,13 @@ namespace
<< STRS[EXCP_CR] << "," << endl
<< STRS[EXCP_NC] << "))" << endl
<< "{";
-
+
if (swapping)
{
os << "this->activate_component (" << STRS[ENV_SNGL_ARG] << ");"
<< STRS[ACE_CR] << " (CORBA::Object::_nil ());" << endl;
}
-
+
os << "if (name == 0)" << endl
<< "{"
<< STRS[ACE_TR] << " (" << endl
@@ -3434,13 +3434,13 @@ namespace
<< STRS[EXCP_AC] << "," << endl
<< STRS[EXCP_IC] << "))" << endl
<< "{";
-
+
if (swapping)
{
os << "this->activate_component (" << STRS[ENV_SNGL_ARG] << ");"
<< "ACE_CHECK;" << endl;
}
-
+
os << "if (emitter_name == 0)" << endl
<< "{"
<< "ACE_THROW (::CORBA::BAD_PARAM ());" << endl
@@ -3479,13 +3479,13 @@ namespace
<< STRS[EXCP_IC] << "," << endl
<< STRS[EXCP_ECL] << "))" << endl
<< "{";
-
+
if (swapping)
{
os << "this->activate_component (" << STRS[ENV_SNGL_ARG] << ");"
<< STRS[ACE_CR] << " (0);" << endl;
}
-
+
os << "// Just in case there are no if blocks" << endl
<< STRS[ACE_UA] << " (subscribe);" << endl
<< "if (publisher_name == 0)" << endl
@@ -3525,14 +3525,14 @@ namespace
<< STRS[EXCP_IN] << "," << endl
<< STRS[EXCP_IC] << "))" << endl
<< "{";
-
+
if (swapping)
{
os << "this->activate_component (" << STRS[ENV_SNGL_ARG] << ");"
<< STRS[ACE_CR] << " (" << STRS[COMP_ECB]
<< "::_nil ());" << endl;
}
-
+
os << "// Just in case there are no if blocks" << endl
<< STRS[ACE_UA] << " (ck);" << endl
<< "if (publisher_name == 0)" << endl
@@ -3589,13 +3589,13 @@ namespace
<< STRS[EXCP_START] << endl
<< STRS[EXCP_SYS] << "))" << endl
<< "{";
-
+
if (swapping)
{
os << "this->activate_component (" << STRS[ENV_SNGL_ARG] << ");"
<< STRS[ACE_CR] << " (CORBA::Object::_nil ());" << endl;
}
-
+
os << "if (name == 0)" << endl
<< "{"
<< STRS[ACE_TR] << " (" << endl
@@ -3786,7 +3786,7 @@ namespace
gen_swap_related (SemanticGraph::Operation&)
{
}
-
+
virtual void
traverse (SemanticGraph::HomeFactory&)
{
@@ -4062,21 +4062,21 @@ namespace
<< "::CIAO::Session_Container *c)" << endl
<< " : ACE_NESTED_CLASS (CIAO, Home_Servant_Impl_Base (c))," << endl
<< " home_svnt_base (exe, c, ins_name";
-
+
string swap_option = ctx.cl ().get_value ("custom-container", "");
bool swapping = (swap_option == "upgradeable");
-
+
if (swapping)
- {
+ {
os << ", \"" << ctx.composition_name ();
-
+
Traversal::Home::manages (t, flat_name_manages_);
-
+
os << "\", ";
-
+
Traversal::Home::manages (t, repo_id_manages_);
}
-
+
os << ")" << endl
<< "{"
<< "}";
@@ -4326,7 +4326,7 @@ namespace
pre (Type& t)
{
ctx.composition_name (t.name ().str ());
-
+
os << STRS[CIDL_NS] << t.name () << "{";
}
@@ -4364,13 +4364,13 @@ ServantSourceEmitter::pre (TranslationUnit&)
"_svnt.h");
file_name = regex::perl_s (file_name,
- "/(\\.(idl|cidl|cdl))?$/"
+ "/^(.+?)(\\.(idl|cidl|cdl))?$/$1"
+ file_suffix
+ "/");
string swap_option = cl_.get_value ("custom-container", "");
bool swapping = (swap_option == "upgradeable");
-
+
os << "#include \"" << file_name << "\"" << endl
<< "#include \"Cookies.h\"" << endl
<< "#include \"ciao/Servant_Activator.h\"" << endl
diff --git a/TAO/CIAO/ChangeLog b/TAO/CIAO/ChangeLog
index 730a439ca3f..337570b5a3c 100644
--- a/TAO/CIAO/ChangeLog
+++ b/TAO/CIAO/ChangeLog
@@ -1,19 +1,33 @@
-Tue Dec 06 12:33:27 2005 <wotte@dre.vanderbilt.edu>
+Wed Dec 7 12:41:22 2005 Boris Kolpackov <boris@kolpackov.net>
+
+ * CIDLC/ExecImplGenerator.cpp:
+ * CIDLC/ExecImplHeaderGenerator.cpp:
+ * CIDLC/ExecImplSourceGenerator.cpp:
+ * CIDLC/ExecutorMappingGenerator.cpp:
+ * CIDLC/ServantGenerator.cpp:
+ * CIDLC/ServantHeaderGenerator.cpp:
+ * CIDLC/ServantSourceGenerator.cpp:
+ * CCF/Example/CIDL/LocalExecutorMapping/ExecutorMappingGenerator.cpp:
+
+ Fixed a bug in regular expressions that are used to get rid of
+ file suffixes.
+
+Tue Dec 06 12:33:27 2005 William Otte <wotte@dre.vanderbilt.edu>
* tools/Config_Handlers/RT-CCM/CIAOServerResources.cpp
* tools/Config_Handlers/RT-CCM/CIAOServerResources.hpp
- Fixed warnings in Borland.
+ Fixed warnings in Borland.
Tue Dec 6 16:14:01 UTC 2005 Jeff Parsons <j.parsons@vanderbilt.edu>
* ciao/Servant_Impl_T.cpp:
-
+
Changed initialization of boolean class members from '0'
to 'false'.
-
+
* ciao/Servant_Impl_T.h:
-
+
Added comments to the executor and context class members,
providing info about where they are initialized.
@@ -21,14 +35,14 @@ Mon Dec 5 14:43:48 2005 William Otte <wotte@dre.vanderbilt.edu>
* DAnCE/ExecutionManager/ExecutionManager.mpc
- Removed superfluous dependancy on Xerces.
+ Removed superfluous dependancy on Xerces.
Sun Dec 4 11:13:32 2005 William Otte <wotte@dre.vanderbilt.edu>
* DAnCE/StaticConfigurator/StaticDAnCEParser.mpc
* DAnCE/tests/Config_Handlers/handler_test.mpb
- Fix linking errors on Tiger.
+ Fix linking errors on Tiger.
Fri Dec 2 11:25:48 2005 William Otte <wotte@dre.vanderbilt.edu>
@@ -41,11 +55,11 @@ Fri Dec 2 11:25:48 2005 William Otte <wotte@dre.vanderbilt.edu>
* DAnCE/RepositoryManager/Update_Plan.cpp
* DAnCE/RepositoryManager/Update_Plan.h
- Removed the deprecated RepositoryManager implementation.
-
+ Removed the deprecated RepositoryManager implementation.
+
* NEWS
-
- Updated the NEWS file to reflect this.
+
+ Updated the NEWS file to reflect this.
Thu Dec 1 10:16:46 2005 William Otte <wotte@dre.vanderbilt.edu>
@@ -53,8 +67,8 @@ Thu Dec 1 10:16:46 2005 William Otte <wotte@dre.vanderbilt.edu>
* tools/Config_Handlers/RT-CCM/CIAOServerResources.cpp
* tools/Config_Handlers/RT-CCM/CIAOServerResources.hpp
- Fixed some errors caused by previous commit.
-
+ Fixed some errors caused by previous commit.
+
Thu Dec 1 12:57:12 UTC 2005 Johnny Willemsen <jwillemsen@remedy.nl>
* DAnCE/DomainApplicationManager/Deployment_Configuration.cpp: