本文整理汇总了C++中UAS_Pointer::locator方法的典型用法代码示例。如果您正苦于以下问题:C++ UAS_Pointer::locator方法的具体用法?C++ UAS_Pointer::locator怎么用?C++ UAS_Pointer::locator使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UAS_Pointer
的用法示例。
在下文中一共展示了UAS_Pointer::locator方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: dgl
bool
GraphicsMgr::is_detached(UAS_Pointer<Graphic> &gr)
{
// iterate through the list looking for our graphic.
// if our graphic is in the list, return True.
// Otherwise, return False.
List_Iterator<GraphicAgent*> dgl (&f_detached_list);
for (; dgl; dgl++)
{
UAS_Pointer<Graphic> g = dgl.item()->graphic();
if (gr->locator() == g->locator())
{
return True;
}
}
return False;
}
示例2:
UAS_Pointer<UAS_EmbeddedObject>
UAS_Factory::create_embedded (const UAS_String &locator,
UAS_Pointer<UAS_Common> relative_to) {
UAS_Factory *theFactory = get_factory (locator);
if (theFactory != 0) {
return theFactory->create_embedded_object (locator);
} else {
theFactory = get_factory (relative_to->locator());
return theFactory->create_relative_embedded_object(locator,relative_to);
}
}
示例3: rg
void
GraphicsMgr::reattach_graphic(UAS_Pointer<Graphic> &gr)
{
Wait_Cursor bob;
gr->set_detached(FALSE);
ReAttachGraphic rg(gr);
UAS_Sender<ReAttachGraphic>::send_message(rg);
UAS_String locator_str = gr->locator();
GraphicAgent *ga = get_agent(locator_str);
remove_detached(ga);
delete ga;
}
示例4: url
DtSR_SearchResultsEntry::DtSR_SearchResultsEntry(const char* id,
const char* book,
const char* section,
int dbn, short language,
UAS_Pointer<DtSR_SearchResults>)
: UAS_SearchResultsEntry(id, book, section, Inv_Relevance),
f_dbn(dbn), f_language(language), f_zone(0)
{
int i;
for (i=0; i<=UAS_SearchZones::uas_all; i++)
f_proximity[i] = 0;
UAS_String url("mmdb:LOCATOR=");
url = url + id;
UAS_Pointer<UAS_Common> sec = UAS_Common::create(url);
f_id = sec->locator();
}
示例5: sprintf
void
printLocs (UAS_Pointer<UAS_Common> doc, int level) {
for (int i = 0; i < level; i ++)
cerr << " ";
UAS_String theLoc = doc->locator();
if (level >= 2) {
char buf[1024];
UAS_String loc = doc->id();
(void) sprintf (buf, "mmdb:LOCATOR=%s", (char *) loc);
UAS_Pointer<UAS_Common> theDoc = UAS_Common::create(buf);
cerr << (char *) theLoc << ", " << (char *) theDoc->title() << endl;
} else {
cerr << (char *) theLoc << endl;
}
UAS_List<UAS_Common> kids = doc->children();
for (i = 0; i < kids.length(); i ++) {
printLocs (kids[i], level + 1);
}
}