Back | Home | Next

Methods

ANNA  K5

@

Home
Glossary
Objectives
Formalism
Morphology
Physiology
Connectors
Serialization
Traits
Methods
Claims
Relations
Dictionary
Core UML
Ring1 Apps
Tiger Server
Features
History
ToDo
Authors
API
Images
ToDo
DNA Declarations
Physiology RO
Real Time RO
ANNA as an Eco System RO
HMM Generator
ERP

 

A scenario involving methods

OBJECT_BASE::EGetStates OBJECT_BASE::GetName (char* buf, int len)
{
    return GetAlias(CurrentAlias,buf,len);
}

OBJECT_BASE::EGetStates NODE::GetName (char* buf, int len)
{
    EGetStates retval=TREE::GetName(buf,len);
    if (Name==0&&Proxies.Parent!=0)
    {
        char*c=buf+strlen(buf);
        int l=len-(c-buf);
        Proxies.Parent->Object->GetName(c,l);
        len-=l;
    }
    STREAM*any_lock_owner=(STREAM*)IsLocked(0);
    if (any_lock_owner&&any_lock_owner!=STREAM::get_Current())
    {
        char*c=buf+strlen(buf);
        int l=len-(c-buf);
        if (l>40)
        {
            sprintf(c," (locked by %.27s)",any_lock_owner->Name);
            len-=l;
        }
    }
    return retval;
}

void NODE::set_Information (char* info)
{
    TREE::set_Information(info);
}

void LINE::set_Information (char* info)
{
    TRelation*rel=IsRelation();
    if (!rel)
        TREE::set_Information(info);
    else
    {
        TREE::set_Information(0);
        rel->set_Information(info);
    }
}

void TRelation::set_Information (char* info)
{
    if (Connector.Information)
        if (Connector.Information!=Information)
            if (Connector.Information!=info)
                free(Connector.Information);
    THierarchy::set_Information(info);
    Connector.Information=Information;
}

The code segment is described by methods

OBJECT_BASE

NODE

GetName

set_Information

char

int

EGetStates

CODESEG

OPCODE

m1

STREAM

m2

rv

buf

len

c

any_lock_owner

info

m3

Hit Counter Created on 05/27/2009 06:31:53 AM, modified on 05/27/2009 06:31:53 AM

Home

Home | Feedback | Contents | Search

Send mail to webmaster@ProximaCentauri.ro with questions or comments about this web site.
All principles and artwork exposed on this site or by our software products is our intellectual property. 
Copyright 2006 Proxima Centauri Romania SRL. Last modified: 05/27/09