94 const CDataHandle * dh)
141 ostr <<
"[unhandled]";
259 "Attempt to access non-boolean value as boolean");
275 "Attempt to access non-integer value as integer");
280 "Attempt to access invalid integer value");
291 "Attempt to access non-double value as double");
296 "Attempt to access invalid double value");
307 "Attempt to access non-secret-string value as secret-string");
312 "Attempt to access invalid secret-string value");
323 _TRACE(
"CPluginValue::AsString(): access to integer value as string");
327 _TRACE(
"CPluginValue::AsString(): access to double value as string");
331 _TRACE(
"CPluginValue::AsString(): access to boolean value as string");
335 _TRACE(
"CPluginValue::AsString(): access to input file value as string");
339 _TRACE(
"CPluginValue::AsString(): access to output file value as string");
352 "Attempt to access non-convertable value as string");
361 "Attempt to access non-file value as input file");
366 "Attempt to access invalid input file value");
377 "Attempt to access non-file value as output file");
382 "Attempt to access invalid output file value");
396 "Attempt to access NULL document");
399 "Attempt to access non-document value as document");
410 "Attempt to access NULL object");
413 "Attempt to access non-object value as object");
virtual CScope * GetScope() const
namespace ncbi::objects::
void SetObject(const string &type)
void SetProject(const CGBProjectHandle *doc)
int AsInteger(void) const
void SetProject(void)
setters for object arguments
double AsDouble(void) const
CPluginValue(void)
default constructor
const string & AsString(void) const
const CObject & AsObject(void) const
bool AsBoolean(void) const
const CGBProjectHandle & AsProject(void) const
const string & AsOutputFile(void) const
const CObject * GetObject(void) const
Special accessor for the stored object.
const string & AsInputFile(void) const
const string & SetInteger()
type-specific setters
const string & SetBoolean()
bool IsEmpty(void) const
determine if this argument has an empty value
void Print(CNcbiOstream &ostr) const
Print a copy of the value stored to the output stream.
const CGBProjectHandle * GetProject(void) const
Special accessor for the implied or actual document.
~CPluginValue(void)
destructor
const string & SetDouble()
const string & AsSecretString(void) const
const string & GetObjectSubtype(void) const
Special accessor for any named object subtype.
CTypeInfo class contains all information about C++ types (both basic and classes): members and layout...
#define NCBI_THROW(exception_class, err_code, message)
Generic macro to throw an exception, given the exception class, error code and message string.
static void GetLabel(const CObject &obj, string *label, ELabelType type=eDefault)
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
IO_PREFIX::ostream CNcbiOstream
Portable alias for ostream.
static bool StringToBool(const CTempString str)
Convert string to bool.
static string DoubleToString(double value, int precision=-1, TNumToStringFlags flags=0)
Convert double to string.
static int StringToInt(const CTempString str, TStringToNumFlags flags=0, int base=10)
Convert string to int.
static double StringToDouble(const CTempStringEx str, TStringToNumFlags flags=0)
Convert string to double.
static const string BoolToString(bool value)
Convert bool to string.
static string IntToString(int value, TNumToStringFlags flags=0, int base=10)
Convert int to string.
bool IsBoolean(void) const
Check if variant Boolean is selected.
bool IsDouble(void) const
Check if variant Double is selected.
const TInteger & GetInteger(void) const
Get the variant data.
TObject & SetObject(void)
Select the variant.
const TSubtype & GetSubtype(void) const
Get the Subtype member data.
bool IsSecret_string(void) const
Check if variant Secret_string is selected.
bool IsInput_file(void) const
Check if variant Input_file is selected.
const TDouble & GetDouble(void) const
Get the variant data.
const TProject & GetProject(void) const
Get the variant data.
bool IsObject(void) const
Check if variant Object is selected.
E_Choice Which(void) const
Which variant is currently selected.
const TString & GetString(void) const
Get the variant data.
const TSecret_string & GetSecret_string(void) const
Get the variant data.
bool IsProject(void) const
Check if variant Project is selected.
bool IsString(void) const
Check if variant String is selected.
TBoolean & SetBoolean(void)
Select the variant.
TString & SetString(void)
Select the variant.
const TInput_file & GetInput_file(void) const
Get the variant data.
TDouble & SetDouble(void)
Select the variant.
TProject & SetProject(void)
Select the variant.
const TBoolean & GetBoolean(void) const
Get the variant data.
const TOutput_file & GetOutput_file(void) const
Get the variant data.
bool IsOutput_file(void) const
Check if variant Output_file is selected.
const TObject & GetObject(void) const
Get the variant data.
TInteger & SetInteger(void)
Select the variant.
bool IsInteger(void) const
Check if variant Integer is selected.
constexpr bool empty(list< Ts... >) noexcept
const struct ncbi::grid::netcache::search::fields::SIZE size
static const char * str(char *buf, int n)