(
void);
60 virtual int Run(
void);
61 virtual void Exit(
void);
84arg_desc->SetUsageContext(
GetArguments().GetProgramBasename(),
85 "Math library test app");
101unique_ptr<CObjectIStream> istr(
103 "/net/snowman/vol/export2/win-coremake/App/Ncbi/gbench/data/test_for_cleanup.asn"));
105 stringheader = istr->ReadFileHeader();
108istr->ReadObject(so.
GetPointer(), type_info);
121CALLGRIND_START_INSTRUMENTATION;
123CALLGRIND_STOP_INSTRUMENTATION;
124CALLGRIND_DUMP_STATS;
127cout <<
"Converted in "<<
t<<
" sec"<< endl;
130cout << it->first <<
": "<< it->second.size() <<
" Seq-locs"<< endl;
139 const string&
type,
146 const CObject* p_obj = it->object;
147objects::CScope* p_scope =
const_cast<objects::CScope*
>(it->scope.GetPointer());
148 if( !p_obj || !p_scope || objects_used.
find( p_obj ) != objects_used.
end() ){
151 const CObject&
object= *p_obj;
152objects::CScope& scope = *p_scope;
158 if( relations.size() > 1 && itr == relations.begin() ){
168 if( !related.empty() ){
virtual int Run(void)
Run the application.
virtual void Exit(void)
Cleanup on application exit.
virtual void Init(void)
Initialize the application.
CRef< CObjectManager > m_ObjectManager
void x_CreateRelatedMap(TConstScopedObjects &input, const string &type, TRelatedObjectsMap &map)
vector< TRelation > TRelationVector
static void FindRelations(objects::CScope &scope, const CObject &obj, const string &to_type_in, TRelationVector &relations)
vector< SObject > TObjects
virtual string GetProperty(const string &) const
virtual void GetRelated(objects::CScope &scope, const CObject &obj, TObjects &related, TFlags flags=eDefault, ICanceled *cancel=NULL) const =0
@ fConvert_NoExpensive
do not perform any expensive tests (such as fetching from the network)
Base class for all serializable objects.
CTypeInfo class contains all information about C++ types (both basic and classes): members and layout...
const_iterator find(const key_type &key) const
const_iterator end() const
int AppMain(int argc, const char *const *argv, const char *const *envp=0, EAppDiagStream diag=eDS_Default, const char *conf=NcbiEmptyCStr, const string &name=NcbiEmptyString)
Main function (entry point) for the NCBI application.
virtual void SetupArgDescriptions(CArgDescriptions *arg_desc)
Setup the command line argument descriptions.
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
const CNcbiArguments & GetArguments(void) const
Get the application's cached unprocessed command-line arguments.
void SetDiagStream(CNcbiOstream *os, bool quick_flush=true, FDiagCleanup cleanup=0, void *cleanup_data=0, const string &stream_name="")
Set diagnostic stream.
vector< SConstScopedObject > TConstScopedObjects
@ eSerial_AsnText
ASN.1 text.
static CObjectIStream * Open(ESerialDataFormat format, CNcbiIstream &inStream, bool deleteInStream)
Create serial object reader and attach it to an input stream.
static CRef< CObjectManager > GetInstance(void)
Return the existing object manager or create one.
void AddDefaults(TPriority pri=kPriority_Default)
Add default data loaders from object manager.
TObjectType * GetPointer(void) THROWS_NONE
Get pointer,.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static string DoubleToString(double value, int precision=-1, TNumToStringFlags flags=0)
Convert double to string.
double Elapsed(void) const
Return time elapsed since first Start() or last Restart() call (in seconds).
void Start(void)
Start the timer.
static TTypeInfo GetClassInfoByName(const string &name)
TObjectPtr Create(CObjectMemoryPool *memoryPool=0) const
Create object of this type on heap (can be deleted by operator delete)
Magic spell ;-) needed for some weird compilers... very empiric.
Defines the CNcbiApplication and CAppException classes for creating NCBI applications.
Defines command line argument related classes.
Defines unified interface to application:
Defines: CTimeFormat - storage class for time format.
int NcbiSys_main(int argc, ncbi::TXChar *argv[])
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4