7 #ifndef __SHEPP_PRINT_H__
8 #define __SHEPP_PRINT_H__
23 printf(
" authInfo pw: [%s]\n", auth.
get_pw().c_str());
25 printf(
" roid: [%s]\n", auth.
get_roid().c_str());
38 printf(
" nameserver %s\n", ns.name.c_str());
40 set<NSIPAddr>::const_iterator it;
41 set<NSIPAddr> ips = ns.ips;
42 for (it = ips.begin(); it != ips.end(); it++) {
43 printf(
" %s: %s\n", (*it).version.c_str(), (*it).addr.c_str());
55 printf(
" PostalInfo:\n");
56 printf(
" type: [%s]\n", postal.get_type().c_str());
58 if (postal.get_name() !=
"") {
59 printf(
" name: [%s]\n", postal.get_name().c_str());
61 if (postal.get_org() !=
"") {
62 printf(
" org : [%s]\n", postal.get_org().c_str());
65 if (postal.get_str1() !=
"") {
66 printf(
" str1: [%s]\n", postal.get_str1().c_str());
68 if (postal.get_str2() !=
"") {
69 printf(
" str2: [%s]\n", postal.get_str2().c_str());
71 if (postal.get_str3() !=
"") {
72 printf(
" str3: [%s]\n", postal.get_str3().c_str());
75 if (postal.get_city() !=
"") {
76 printf(
" city: [%s]\n", postal.get_city().c_str());
79 if (postal.get_sp() !=
"") {
80 printf(
" s/p : [%s]\n", postal.get_sp().c_str());
83 if (postal.get_pc() !=
"") {
84 printf(
" pc : [%s]\n", postal.get_pc().c_str());
87 if (postal.get_cc() !=
"") {
88 printf(
" cc : [%s]\n", postal.get_cc().c_str());
98 printf(
" number: [%s] ext: [%s]\n", phone.number.c_str(),
108 printf(
" disclose (flag=%d) [ ", disclose.flag);
109 if (disclose.name_int) {
112 if (disclose.name_loc) {
115 if (disclose.org_int) {
118 if (disclose.org_loc) {
121 if (disclose.addr_int) {
124 if (disclose.addr_loc) {
127 if (disclose.voice) {
133 if (disclose.email) {
140 #endif //__SHEPP_PRINT_H__
static void authInfo(AuthInfo auth)
prints an AuthInfo object
Definition: SheppPrint.H:21
Definition: CommonData.H:183
PostalInfo class.
Definition: CommonData.H:281
string get_roid() const
Returns repository object ID.
Definition: CommonData.H:115
shepp object information screen printing class
Definition: SheppPrint.H:13
static void postal_info(PostalInfo postal)
prints a PostalInfo object
Definition: SheppPrint.H:53
Definition: CommonData.H:491
static void disclose(CommonData::Disclose disclose)
prints a Disclose object
Definition: SheppPrint.H:106
string get_pw() const
Returns the password.
Definition: CommonData.H:140
Definition: CommonData.H:524
static void nameserver(NameServer ns)
prints a NameServer object
Definition: SheppPrint.H:36
static void phone(CommonData::Phone phone)
prints a Phone object
Definition: SheppPrint.H:96
AuthInfo Class.
Definition: CommonData.H:83